mirror of
https://github.com/tmux/tmux.git
synced 2025-11-03 08:16:08 +00: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