From: Wilfried Göesgens Date: Fri, 12 Jun 2009 06:27:31 +0000 (+0000) Subject: * don't touch the buffer if its empty. X-Git-Tag: v7.86~1078 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=93761287896ec74f30d4383983f8adcda984ae6a * don't touch the buffer if its empty. --- diff --git a/libcitadel/lib/tools.c b/libcitadel/lib/tools.c index 03d3213de..bbb497eb8 100644 --- 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; }