diff options
author | George Burgess IV <gbiv@google.com> | 2016-10-11 17:51:10 -0700 |
---|---|---|
committer | George Burgess IV <gbiv@google.com> | 2016-10-13 15:51:04 -0700 |
commit | 0c2774b16a72d13f432cd8b7e8dedd2d6f5ed0ba (patch) | |
tree | 3a1cb092a818d7daa0d93e56569477678c0fc7a1 /tools/aapt/Images.cpp | |
parent | c98b34bdce1fb1b43755af7fb8538efb0d0dc953 (diff) |
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
Diffstat (limited to 'tools/aapt/Images.cpp')
-rw-r--r-- | tools/aapt/Images.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt/Images.cpp b/tools/aapt/Images.cpp index 9939c188cdd9..cc26b4f17f6b 100644 --- a/tools/aapt/Images.cpp +++ b/tools/aapt/Images.cpp @@ -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++) { |