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);