From 93761287896ec74f30d4383983f8adcda984ae6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 12 Jun 2009 06:27:31 +0000 Subject: [PATCH] * don't touch the buffer if its empty. --- libcitadel/lib/tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2