From 1f949e082dca08c290cc244bbad9475b5ab5358c Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Apr 2007 19:00:42 +0200 Subject: [PATCH] Remove the check for value_start(if any it should be *value_start) --- client/mysql_upgrade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));