From: Zbigniew Jędrzejewski-Szmek Date: Wed, 31 Mar 2021 15:37:25 +0000 (+0200) Subject: core: silence gcc warning X-Git-Tag: v249-rc1~490^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a2948fece3a6b9f345a45be412e4622de288ff1;p=thirdparty%2Fsystemd.git core: silence gcc warning --- diff --git a/src/core/main.c b/src/core/main.c index 0ddd6298513..74dd895c588 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1367,7 +1367,7 @@ static int status_welcome(void) { static int write_container_id(void) { const char *c; - int r; + int r = 0; /* silence gcc warning about r being unitialized below */ c = getenv("container"); if (isempty(c))