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

for chars.
pull/1/head
Miod Vallat 2011-04-06 11:36:26 +00:00
parent 5d519ba526
commit c8a14def9f
1 changed files with 1 additions and 1 deletions

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)
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);