summaryrefslogtreecommitdiff
path: root/myisam/mi_checksum.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-09-03 11:34:32 +0200
committerunknown <serg@serg.mylan>2003-09-03 11:34:32 +0200
commit4a21b30e47cfb2905ac1e6a3e9a220164067b595 (patch)
tree0dfea7caf86829a5356d14fbd291804272da2deb /myisam/mi_checksum.c
parent710d4f140a3c0f292f964cc5acc93a9a96318f69 (diff)
downloadmariadb-git-4a21b30e47cfb2905ac1e6a3e9a220164067b595.tar.gz
CHECKSUM TABLE table1, table2, ... [ QUICK | EXTENDED ]
myisam/mi_checksum.c: workaround for zlib's crc32 glitch mysql-test/r/show_check.result: results updated mysys/checksum.c: switching to crc32 as a checksum algorithm
Diffstat (limited to 'myisam/mi_checksum.c')
-rw-r--r--myisam/mi_checksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_checksum.c b/myisam/mi_checksum.c
index 982f77ee81f..cdbb634c5ff 100644
--- a/myisam/mi_checksum.c
+++ b/myisam/mi_checksum.c
@@ -50,7 +50,7 @@ ha_checksum mi_checksum(MI_INFO *info, const byte *buf)
pos=buf;
break;
}
- crc=my_checksum(crc, pos, length);
+ crc=my_checksum(crc, pos ? pos : "", length);
}
return crc;
}