summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index e8cb59e387e..42c89db9ca4 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -1587,9 +1587,12 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables,
break;
}
case SHOW_CHAR:
- pos= value;
- end= strend(pos);
+ {
+ if (!(pos= value))
+ pos= "";
+ end= strend(pos);
break;
+ }
case SHOW_STARTTIME:
nr= (long) (thd->query_start() - start_time);
end= int10_to_str(nr, buff, 10);