diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2012-09-21 10:22:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-21 12:07:41 +0200 |
commit | e98055de981b568c31f18f470181ae166b56f172 (patch) | |
tree | 1951f7fcf4f17a7083e1cd4f327d3f78225af254 /src/shared/util.c | |
parent | 409133be63387fc04d927e8aecd2f6ba03d2f143 (diff) |
shared: call va_end in all cases
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; } |