diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-01 00:08:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-01 00:17:21 +0200 |
commit | bcd8e6d1bd3f434af894faeb400fee0e99445a7f (patch) | |
tree | 1c0668d6b4e3bab3b2af0438525a62d318e2b37f /src/shared/strv.c | |
parent | 6c081276dc11722656906361ac78e415757865e3 (diff) |
local: fix memory leak when putting together locale settings
Also, we need to use proper strv_env_xyz() calls when putting together
the environment array, since otherwise settings won't be properly
overriden.
And let's get rid of strv_appendf(), is overkill and there was only one
user.
Diffstat (limited to 'src/shared/strv.c')
-rw-r--r-- | src/shared/strv.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/shared/strv.c b/src/shared/strv.c index 2df478f30b..adeee282b7 100644 --- a/src/shared/strv.c +++ b/src/shared/strv.c @@ -424,21 +424,6 @@ fail: return NULL; } -char **strv_appendf(char **l, const char *format, ...) { - va_list ap; - _cleanup_free_ char *s = NULL; - int r; - - va_start(ap, format); - r = vasprintf(&s, format, ap); - va_end(ap); - - if (r < 0) - return NULL; - - return strv_append(l, s); -} - int strv_push(char ***l, char *value) { char **c; unsigned n; |