Skip to content

Commit

Permalink
fix ret flag initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulenka committed Jan 29, 2021
1 parent 8cefe46 commit e1073fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion incbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ static const char *styled(int style, int ident) {
}
break;
}
return "";
}

int main(int argc, char **argv) {
int ret, i, paths, files = 0, style = kCamel;
int ret = 0, i, paths, files = 0, style = kCamel;
char outfile[FILENAME_MAX] = "data.c";
char search_paths[SEARCH_PATHS_MAX][PATH_MAX];
char prefix[FILENAME_MAX] = "g";
Expand Down Expand Up @@ -233,6 +234,7 @@ int main(int argc, char **argv) {
file++;
if (!(f = open_file(file, "rb", search_paths, paths))) {
fprintf(stderr, "failed to include data `%s'\n", file);
ret = 1;
goto end;
} else {
long size, i;
Expand Down

0 comments on commit e1073fe

Please sign in to comment.