Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'

for chars.
This commit is contained in:
Miod Vallat 2011-04-06 11:36:26 +00:00
parent 5d519ba526
commit c8a14def9f

View File

@ -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) if ((c = cmd_find_client(ctx, args_get(args, 'c'))) == NULL)
return (-1); 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); wl = cmd_find_pane(ctx, args_get(args, 't'), &s, &wp);
if (wl == NULL) if (wl == NULL)
return (-1); return (-1);