mirror of
https://github.com/tmux/tmux.git
synced 2024-11-08 04:08:49 +00:00
|PatchSet 883
|Date: 2011/04/06 12:36:26 |Author: miod |Branch: HEAD |Tag: (none) |Log: |Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0' |for chars.
This commit is contained in:
parent
4e452a2e11
commit
13c54a04a0
@ -1,4 +1,4 @@
|
||||
/* $Id: cmd-display-message.c,v 1.9 2011-04-06 22:21:02 nicm Exp $ */
|
||||
/* $Id: cmd-display-message.c,v 1.10 2011-04-06 22:24:20 nicm 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);
|
||||
|
Loading…
Reference in New Issue
Block a user