projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eda9bd
)
mysql.c: Fix boolean logig bug
author
Andre Noll
<maan@systemlinux.org>
Tue, 19 Dec 2006 17:30:51 +0000
(18:30 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 19 Dec 2006 17:30:51 +0000
(18:30 +0100)
Found by davej's findbugs.pl script.
Hard to spot for the human eye.
mysql_selector.c
patch
|
blob
|
history
diff --git
a/mysql_selector.c
b/mysql_selector.c
index
9363dba
..
7a3b0a7
100644
(file)
--- 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))