From: nicm Date: Fri, 5 Jun 2015 09:09:08 +0000 (+0000) Subject: Fix a warning. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e0456e3819a356da467943fe7c376e522d377578;p=openbsd Fix a warning. --- diff --git a/usr.bin/tmux/cmd-find.c b/usr.bin/tmux/cmd-find.c index bdb91d34b5c..a61292a3f03 100644 --- a/usr.bin/tmux/cmd-find.c +++ b/usr.bin/tmux/cmd-find.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-find.c,v 1.9 2015/06/05 08:14:16 nicm Exp $ */ +/* $OpenBSD: cmd-find.c,v 1.10 2015/06/05 09:09:08 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -476,7 +476,7 @@ cmd_find_get_window_with_session(struct cmd_find_state *fs, const char *window) } /* Try as an offset. */ - if (!exact && window[0] == '+' || window[0] == '-') { + if (!exact && (window[0] == '+' || window[0] == '-')) { if (window[1] != '\0') n = strtonum(window + 1, 1, INT_MAX, NULL); else