]> granicus.if.org Git - cronie/commitdiff
fdin could be tested before initialization.
authorMarcela Mašláňová <mmaslano@redhat.com>
Mon, 21 Feb 2011 12:23:35 +0000 (13:23 +0100)
committerMarcela Mašláňová <mmaslano@redhat.com>
Mon, 21 Feb 2011 12:23:35 +0000 (13:23 +0100)
anacron/runjob.c

index 29aaefbc86a944a21c1d2650776a1b50b09adad0..ba4dc067aef8f92d8bb3bad1a309102e9ced3fe9 100644 (file)
@@ -43,7 +43,8 @@ temp_file(job_rec *jr)
 {
     const int max_retries = 50;
     char *name;
-    int fdin, fdout, i;
+    int fdin = -1;
+    int fdout, i;
 
     i = 0;
     name = NULL;