mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-09 05:54:47 +02:00
Kill some dead stores and fix a null pointer deref, found by clang.
This commit is contained in:
@ -140,6 +140,8 @@ cmd_command_prompt_callback(void *data, const char *s)
|
||||
}
|
||||
}
|
||||
|
||||
if (buf == NULL)
|
||||
return (0);
|
||||
buf[len] = '\0';
|
||||
s = buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user