diff options
author | Miod Vallat <miod@openbsd.org> | 2011-04-06 11:36:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@openbsd.org> | 2011-04-06 11:36:26 +0000 |
commit | c8a14def9f2273c13d081c891d76e5f32323fc40 (patch) | |
tree | fa881a102ad0de1030d7358076f7514f7869ba45 | |
parent | 5d519ba526feffb08003e2c11c7230a6f2cc1d9e (diff) | |
download | rtmux-c8a14def9f2273c13d081c891d76e5f32323fc40.tar.gz rtmux-c8a14def9f2273c13d081c891d76e5f32323fc40.tar.bz2 rtmux-c8a14def9f2273c13d081c891d76e5f32323fc40.zip |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
-rw-r--r-- | cmd-display-message.c | 2 |
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); |