aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-02-28 13:54:05 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-02-28 14:11:34 +0100
commitd5d433e0c051cb0912421a1df3f239438928f7d2 (patch)
treeb43b5f743fd4cb43829af5f8f6d095e11ccaa7ef /env.c
parent944e10700c98f8ac71c2385fd96671167463fcf0 (diff)
downloadfetchmail-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 'env.c')
-rw-r--r--env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.c b/env.c
index 2ac5a622..5dd54032 100644
--- a/env.c
+++ b/env.c
@@ -290,7 +290,7 @@ char *visbuf(const char *buf)
needed = strlen(buf) * 5 + 1; /* worst case: HEX, plus NUL byte */
- if (needed > vbufs) {
+ if (!vbuf || needed > vbufs) {
vbufs = needed;
vbuf = (char *)xrealloc(vbuf, vbufs);
}