]> granicus.if.org Git - procps-ng/commitdiff
sysctl: eliminate a warning of '-Wmaybe-uninitialized'
authorJim Warner <james.warner@comcast.net>
Sun, 2 Jan 2022 06:00:09 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Fri, 7 Jan 2022 08:19:15 +0000 (19:19 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
sysctl.c

index adf0238739c3efdf069354c98a06a86765d47897..fd9cec1673d8dd32340556cf1ea548d228430189 100644 (file)
--- a/sysctl.c
+++ b/sysctl.c
@@ -890,7 +890,7 @@ int main(int argc, char *argv[])
        bool preloadfileOpt = false;
        int ReturnCode = 0;
        int c;
-    int rc;
+       int rc = 0;
        const char *preloadfile = NULL;
     SettingList *setlist;