diff options
author | 2011-04-06 11:36:23 +0000 | |
---|---|---|
committer | 2011-04-06 11:36:23 +0000 | |
commit | 691235adb977a6a7730c100aa9b733644d50c443 (patch) | |
tree | 55fba51a8d239644006a1329a3fb5146e9974cc9 /usr.bin/tmux/cmd-display-message.c | |
parent | Local variables storing integer values and printed with %d should be (diff) | |
download | wireguard-openbsd-691235adb977a6a7730c100aa9b733644d50c443.tar.xz wireguard-openbsd-691235adb977a6a7730c100aa9b733644d50c443.zip |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'usr.bin/tmux/cmd-display-message.c')
-rw-r--r-- | usr.bin/tmux/cmd-display-message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-display-message.c b/usr.bin/tmux/cmd-display-message.c index 2576dfe6055..03de7d1e0cf 100644 --- a/usr.bin/tmux/cmd-display-message.c +++ b/usr.bin/tmux/cmd-display-message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-display-message.c,v 1.9 2011/03/29 19:30:16 nicm Exp $ */ +/* $OpenBSD: cmd-display-message.c,v 1.10 2011/04/06 11:36:26 miod Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -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); |