mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 08:33:17 +01:00
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
This commit is contained in:
parent
5d519ba526
commit
c8a14def9f
@ -52,7 +52,7 @@ cmd_display_message_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
if ((c = cmd_find_client(ctx, args_get(args, 'c'))) == NULL)
|
||||
return (-1);
|
||||
|
||||
if (args_has(args, 't') != NULL) {
|
||||
if (args_has(args, 't') != 0) {
|
||||
wl = cmd_find_pane(ctx, args_get(args, 't'), &s, &wp);
|
||||
if (wl == NULL)
|
||||
return (-1);
|
||||
|
Loading…
Reference in New Issue
Block a user