From 13c54a04a0ef236dd2df36ca3fa5fd1b89272be6 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 6 Apr 2011 22:24:20 +0000 Subject: [PATCH] |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. --- cmd-display-message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd-display-message.c b/cmd-display-message.c index e3327363..9ad18269 100644 --- a/cmd-display-message.c +++ b/cmd-display-message.c @@ -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 @@ -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);