Skip to content

Commit

Permalink
Initialize more variables in main()
Browse files Browse the repository at this point in the history
This gets rid of a warning about potentially unitialized variables (may
not actually be an issue, but warnings are good to avoid).
  • Loading branch information
ehem committed Jul 3, 2017
1 parent 2cf0fca commit 0fd31f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unpackbootimg.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int main(int argc, char** argv)
printf("BOARD_RAMDISK_OFFSET %08x\n", header.ramdisk_addr - base);
printf("BOARD_SECOND_OFFSET %08x\n", header.second_addr - base);
printf("BOARD_TAGS_OFFSET %08x\n", header.tags_addr - base);
int a,b,c,y,m = 0;
int a=0, b=0, c=0, y=0, m=0;
if (header.os_version != 0) {
int os_version,os_patch_level;
os_version = header.os_version >> 11;
Expand Down

0 comments on commit 0fd31f8

Please sign in to comment.