]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Merge pull request #5463 from OdyX/fix-unitialized-service-idle-exit
authorMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 14 Dec 2018 15:03:57 +0000 (10:03 -0500)
committerGitHub <noreply@github.com>
Fri, 14 Dec 2018 15:03:57 +0000 (10:03 -0500)
Fix service_idle_exit build issue with -Werror=maybe-unitialized

scheduler/main.c

index 5b00efae2e02a91c928783f2e79083a5bca36292..3b258a70ab0ce4b6d9e9116c1771b407aac489d9 100644 (file)
@@ -129,7 +129,7 @@ main(int  argc,                             /* I - Number of command-line args */
   time_t               netif_time = 0; /* Time since last network update */
 #endif /* __APPLE__ */
 #if defined(HAVE_ONDEMAND)
-  int                  service_idle_exit;
+  int                  service_idle_exit = 0;
                                        /* Idle exit on select timeout? */
 #endif /* HAVE_ONDEMAND */