diff options
Diffstat (limited to 'myisammrg/myrg_rprev.c')
-rw-r--r-- | myisammrg/myrg_rprev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/myisammrg/myrg_rprev.c b/myisammrg/myrg_rprev.c index bd7e6a1f6d2..cb56acd1a73 100644 --- a/myisammrg/myrg_rprev.c +++ b/myisammrg/myrg_rprev.c @@ -25,6 +25,9 @@ int myrg_rprev(MYRG_INFO *info, byte *buf, int inx) int err; MI_INFO *mi; + if (!info || !info->current_table) + return HA_ERR_UNSUPPORTED; + /* at first, do rprev for the table found before */ if ((err=mi_rprev(info->current_table->table,NULL,inx))) { |