]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysusers: add missing initalizer
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 7 Apr 2019 19:37:18 +0000 (21:37 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 7 Apr 2019 19:49:08 +0000 (21:49 +0200)
I assume that this is the error causing the invalid free in
https://bugzilla.redhat.com/show_bug.cgi?id=1670679.

src/sysusers/sysusers.c

index b9fa33485865f60e9743d74342994b2b3804724a..ee4973a0f43a56bd073bdaa494e8f7b9054814cb 100644 (file)
@@ -1381,7 +1381,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
                 *id = NULL, *resolved_id = NULL,
                 *description = NULL, *resolved_description = NULL,
                 *home = NULL, *resolved_home = NULL,
-                *shell, *resolved_shell = NULL;
+                *shell = NULL, *resolved_shell = NULL;
         _cleanup_(item_freep) Item *i = NULL;
         Item *existing;
         OrderedHashmap *h;