Commit bf4fb50f authored by unknown's avatar unknown

Fix berkeley_show_logs().


sql/ha_berkeley.cc:
  - fix coredump in berkeley_show_logs()
parent 4c842541
...@@ -237,7 +237,7 @@ int berkeley_show_logs(THD *thd) ...@@ -237,7 +237,7 @@ int berkeley_show_logs(THD *thd)
packet->length(0); packet->length(0);
net_store_data(packet,*a); net_store_data(packet,*a);
net_store_data(packet,"BDB"); net_store_data(packet,"BDB");
if (f && strcmp(*a, *f) == 0) if (f && *f && strcmp(*a, *f) == 0)
{ {
net_store_data(packet, SHOW_LOG_STATUS_FREE); net_store_data(packet, SHOW_LOG_STATUS_FREE);
++f; ++f;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment