From 9628f2745059d268305f83ca779a73ff1ee2a6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 28 Jul 2016 16:50:51 +0200 Subject: [PATCH] Initialize variable in the beginning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- src/enca.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/enca.c b/src/enca.c index fd23efb..cf9f36c 100644 --- a/src/enca.c +++ b/src/enca.c @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) { char **pp_file, **flist; /* filename list pointer */ - long int err; /* nonzero if process_file() ever returned nonzero */ + long int err=0; /* nonzero if process_file() ever returned nonzero */ EncaAnalyser an; /* Process command line arguments. */ @@ -74,7 +74,6 @@ main(int argc, char *argv[]) } else { /* Process file list, cumultate the worst error in err. */ - err = 0; while (*pp_file != NULL) { err |= process_file(an, *pp_file); enca_free(*pp_file);