From 18ba891eac4f4c78a2710956cb48245d6c3024cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Mon, 21 Feb 2011 13:23:35 +0100 Subject: [PATCH] fdin could be tested before initialization. --- anacron/runjob.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anacron/runjob.c b/anacron/runjob.c index 29aaefb..ba4dc06 100644 --- a/anacron/runjob.c +++ b/anacron/runjob.c @@ -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; -- 2.40.0