summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsvensson@pilot.blaudden <>2007-04-18 19:00:42 +0200
committermsvensson@pilot.blaudden <>2007-04-18 19:00:42 +0200
commit4e84ab3f82cd05186767a2b176bdccfea4cd1ce9 (patch)
tree4c3dab35c484f1ee434a863af851d31d50aaa417
parent453b6180d09172ce85f3af4660edcdeae4574aec (diff)
downloadmariadb-git-4e84ab3f82cd05186767a2b176bdccfea4cd1ce9.tar.gz
Remove the check for value_start(if any it should be *value_start)
-rw-r--r--client/mysql_upgrade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c
index 813f5b25bc7..92dcb62e8b7 100644
--- a/client/mysql_upgrade.c
+++ b/client/mysql_upgrade.c
@@ -505,7 +505,7 @@ static int extract_variable_from_show(DYNAMIC_STRING* ds, char* value)
value_start++;
/* Don't copy the ending newline */
- if (value_start && (value_end= strchr(value_start, '\n')) == NULL)
+ if ((value_end= strchr(value_start, '\n')) == NULL)
return 1; /* Unexpected result */
strncpy(value, value_start, min(FN_REFLEN, value_end-value_start));