aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-06-03 15:27:43 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-06-03 16:06:23 +0200
commit34f7ed1fc76dbbcd8f2984d4304ec24ead244b43 (patch)
tree1ff4f4daa0e262a1ad243365a983ed4d7e70445e /sink.c
parentf1c6a8ec2cf88cd7b857111e58fab7e72ede7d29 (diff)
downloadfetchmail-34f7ed1fc76dbbcd8f2984d4304ec24ead244b43.tar.gz
fetchmail-34f7ed1fc76dbbcd8f2984d4304ec24ead244b43.tar.bz2
fetchmail-34f7ed1fc76dbbcd8f2984d4304ec24ead244b43.zip
Fix some rare or minor issues found with Clang 2.7 analyzer.
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sink.c b/sink.c
index 76cd2bb5..a3f5dea3 100644
--- a/sink.c
+++ b/sink.c
@@ -649,6 +649,9 @@ int stuffline(struct query *ctl, char *buf)
int n, oldphase;
char *last;
+ if (!buf)
+ return -1;
+
/* The line may contain NUL characters. Find the last char to use
* -- the real line termination is the sequence "\n\0".
*/