From c8a14def9f2273c13d081c891d76e5f32323fc40 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 6 Apr 2011 11:36:26 +0000 Subject: [PATCH] Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0' for chars. --- cmd-display-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-display-message.c b/cmd-display-message.c index dfa8312f..b2cf832b 100644 --- a/cmd-display-message.c +++ b/cmd-display-message.c @@ -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);