diff options
author | antirez <antirez@gmail.com> | 2010-11-02 11:15:09 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-11-02 11:15:09 +0100 |
commit | 10c12171cc2f94087c85651b14831c1e52daa087 (patch) | |
tree | 9a3589e30d14aafd78c292bb61bd3d890c55676c /src/zipmap.c | |
parent | 92e282288f8f7bf51bccd0f6ef6964f32fa37f24 (diff) | |
download | redis-10c12171cc2f94087c85651b14831c1e52daa087.tar.gz |
removed a number of stupid compilation warnings on Linux
Diffstat (limited to 'src/zipmap.c')
-rw-r--r-- | src/zipmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zipmap.c b/src/zipmap.c index 35faeabef..be780a828 100644 --- a/src/zipmap.c +++ b/src/zipmap.c @@ -374,14 +374,14 @@ void zipmapRepr(unsigned char *p) { l = zipmapDecodeLength(p); printf("{key %u}",l); p += zipmapEncodeLength(NULL,l); - fwrite(p,l,1,stdout); + if (l != 0 && fwrite(p,l,1,stdout) == 0) perror("fwrite"); p += l; l = zipmapDecodeLength(p); printf("{value %u}",l); p += zipmapEncodeLength(NULL,l); e = *p++; - fwrite(p,l,1,stdout); + if (l != 0 && fwrite(p,l,1,stdout) == 0) perror("fwrite"); p += l+e; if (e) { printf("["); |