Skip to content

Commit

Permalink
Initialize variable in the beginning
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <[email protected]>
  • Loading branch information
nijel committed Jul 28, 2016
1 parent feeb41a commit 9628f27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/enca.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9628f27

Please sign in to comment.