diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-02-28 13:54:05 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-02-28 14:11:34 +0100 |
commit | d5d433e0c051cb0912421a1df3f239438928f7d2 (patch) | |
tree | b43b5f743fd4cb43829af5f8f6d095e11ccaa7ef /smbutil.c | |
parent | 944e10700c98f8ac71c2385fd96671167463fcf0 (diff) | |
download | fetchmail-d5d433e0c051cb0912421a1df3f239438928f7d2.tar.gz fetchmail-d5d433e0c051cb0912421a1df3f239438928f7d2.tar.bz2 fetchmail-d5d433e0c051cb0912421a1df3f239438928f7d2.zip |
Make some explicit NULL checks to pacify llvm-clang's static analyzer
Diffstat (limited to 'smbutil.c')
-rw-r--r-- | smbutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ static void dumpRaw(FILE *fp, unsigned char *buf, size_t len) /* helper macro to destructively resize buffers; assumes that bufsiz * is initialized to 0 if buf is unallocated! */ #define allocbuf(buf, bufsiz, need) do { \ - if ((need) > (bufsiz)) \ + if (!buf || (need) > (bufsiz)) \ { \ (bufsiz) = ((need) < 1024) ? 1024 : (need); \ xfree(buf); \ |