mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Remove the check for value_start(if any it should be *value_start)
This commit is contained in:
parent
87a05adf40
commit
1f949e082d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue