From 4d72f19bdd24989dba1af207b29448330fc9aef2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 19 Dec 2006 18:30:51 +0100 Subject: [PATCH] mysql.c: Fix boolean logig bug Found by davej's findbugs.pl script. Hard to spot for the human eye. --- mysql_selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql_selector.c b/mysql_selector.c index 9363dba4..7a3b0a7d 100644 --- a/mysql_selector.c +++ b/mysql_selector.c @@ -1502,7 +1502,7 @@ static int com_mv(__a_unused int fd, int argc, char *argv[]) ret = -E_ESCAPE; ebn1 = escaped_basename(argv[1]); ebn2 = escaped_basename(argv[2]); - if (!ebn1 || !ebn2 | !*ebn1 || !*ebn2) + if (!ebn1 || !ebn2 || !*ebn1 || !*ebn2) goto out; ret = -E_MYSQL_SYNTAX; if (!strcmp(ebn1, ebn2)) -- 2.39.5