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:
George Burgess IV
2016-10-11 17:51:10 -07:00
parent c98b34bdce
commit 0c2774b16a

View File

@@ -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++) {