projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f83224f
)
one more null-check
author
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 3 Jun 2012 12:41:38 +0000
(14:41 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 3 Jun 2012 12:41:38 +0000
(14:41 +0200)
libcitadel/lib/stringbuf.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index 7eac317a9b54fc50df8746844fcd11424ff9ad44..1d24342771ee10998ef1e251379474cde22d8e89 100644
(file)
--- a/
libcitadel/lib/stringbuf.c
+++ b/
libcitadel/lib/stringbuf.c
@@
-4661,7
+4661,8
@@
int StrBufSipLine(StrBuf *LineBuf, const StrBuf *Buf, const char **Ptr)
if ((Buf == NULL) ||
(*Ptr == StrBufNOTNULL) ||
- (LineBuf == NULL))
+ (LineBuf == NULL)||
+ (LineBuf->buf == NULL))
{
*Ptr = StrBufNOTNULL;
return 0;