diff options
Diffstat (limited to 'storage/myisam/mi_dbug.c')
-rw-r--r-- | storage/myisam/mi_dbug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/myisam/mi_dbug.c b/storage/myisam/mi_dbug.c index e782d21afe7..ddc8a403a33 100644 --- a/storage/myisam/mi_dbug.c +++ b/storage/myisam/mi_dbug.c @@ -40,12 +40,12 @@ void _mi_print_key(FILE *stream, register HA_KEYSEG *keyseg, end= key+ keyseg->length; if (keyseg->flag & HA_NULL_PART) { - if (!*key) + /* A NULL value is encoded by a 1-byte flag. Zero means NULL. */ + if (! *(key++)) { fprintf(stream,"NULL"); continue; } - key++; } switch (keyseg->type) { |