summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
Diffstat (limited to 'extern')
-rw-r--r--extern/concat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/extern/concat.h b/extern/concat.h
index 7f2ea46..0f3be99 100644
--- a/extern/concat.h
+++ b/extern/concat.h
@@ -11,6 +11,9 @@ ccat(const unsigned short int count, ...)
unsigned short int i;
concat[0] = '\0';
+ if (count == 0)
+ return;
+
va_start(ap, count);
for(i = 0; i < count; i++)
strlcat(concat, va_arg(ap, char *), sizeof(concat));