Fix static-analyzer warning.
frameworks/base/tools/aapt/Images.cpp:845:17: warning: Assigned value is
garbage or undefined
row += bpp;
Bug: None.
Test: The warning is gone.
Change-Id: Idf4623d2510111a9188ed39922e109a8db225c76
This commit is contained in:
@@ -833,6 +833,7 @@ static void dump_image(int w, int h, png_bytepp rows, int color_type)
|
||||
bpp = 4;
|
||||
} else {
|
||||
printf("Unknown color type %d.\n", color_type);
|
||||
return;
|
||||
}
|
||||
|
||||
for (j = 0; j < h; j++) {
|
||||
|
||||
Reference in New Issue
Block a user