diff options
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index be94515d9d..97f766c33c 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -5024,8 +5024,10 @@ char *strjoin(const char *x, ...) { break; n = strlen(t); - if (n > ((size_t) -1) - l) + if (n > ((size_t) -1) - l) { + va_end(ap); return NULL; + } l += n; } |