提交 041d8e2a 编写于 作者: P Pieter Noordhuis

Fix up rdbWriteRaw to return number of bytes written

上级 7271198c
......@@ -9,9 +9,9 @@
#include "lzf.h" /* LZF compression library */
static int rdbWriteRaw(rio *rdb, void *p, size_t len) {
if (rioWrite(rdb,p,len) == 0)
if (rdb && rioWrite(rdb,p,len) == 0)
return -1;
return 1;
return len;
}
int rdbSaveType(rio *rdb, unsigned char type) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册