projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a4fad
)
* don't touch the buffer if its empty.
author
Wilfried Göesgens
<willi@citadel.org>
Fri, 12 Jun 2009 06:27:31 +0000
(06:27 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Fri, 12 Jun 2009 06:27:31 +0000
(06:27 +0000)
libcitadel/lib/tools.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/tools.c
b/libcitadel/lib/tools.c
index 03d3213de62542568426f793b5cbac89fc4321c0..bbb497eb868e944001f32ac0e1569c221c65b8d9 100644
(file)
--- a/
libcitadel/lib/tools.c
+++ b/
libcitadel/lib/tools.c
@@
-495,7
+495,7
@@
size_t striplt(char *buf) {
char *ptr;
size_t new_len = 0;
- if (
!buf
) {
+ if (
(buf == NULL) || (*Buf == '\0')
) {
return 0;
}