summaryrefslogtreecommitdiffstats
path: root/cmd-display-message.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@openbsd.org>2011-04-06 11:36:26 +0000
committerMiod Vallat <miod@openbsd.org>2011-04-06 11:36:26 +0000
commitc8a14def9f2273c13d081c891d76e5f32323fc40 (patch)
treefa881a102ad0de1030d7358076f7514f7869ba45 /cmd-display-message.c
parent5d519ba526feffb08003e2c11c7230a6f2cc1d9e (diff)
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'cmd-display-message.c')
-rw-r--r--cmd-display-message.c2
1 files changed, 1 insertions, 1 deletions
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);