projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* don't touch the buffer if its empty.
[citadel.git]
/
libcitadel
/
lib
/
tools.c
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;
}