From: Karel Zak Date: Wed, 15 Apr 2026 11:27:06 +0000 (+0200) Subject: lib/pwdutils: fix compiler warning [-Werror=maybe-uninitialized] X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=56fb95ae916510338fbaf7d93de1b9b4ab54b193;p=thirdparty%2Futil-linux.git lib/pwdutils: fix compiler warning [-Werror=maybe-uninitialized] Signed-off-by: Karel Zak --- diff --git a/lib/pwdutils.c b/lib/pwdutils.c index 64a7af6f6..374a3b174 100644 --- a/lib/pwdutils.c +++ b/lib/pwdutils.c @@ -172,7 +172,7 @@ char *xgetlogin(void) struct group *ul_getgrp_str(const char *str, gid_t *result) { int rc; - uint64_t num; + uint64_t num = 0; struct group *gr; if (result) @@ -217,7 +217,7 @@ struct group *ul_getgrp_str(const char *str, gid_t *result) struct passwd *ul_getuserpw_str(const char *str, uid_t *result) { int rc; - uint64_t num; + uint64_t num = 0; struct passwd *pw; if (result)