picview/png, my_popen: fix -Wclobbered warnings

Origin commit data
------------------
Branch: ni/coolstream
Commit: fe5a6ec111
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-01-26 (Mon, 26 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-01-26 19:30:23 +01:00
committed by Jacek Jendrzej
parent a1cc8dc08a
commit 552334b652
2 changed files with 6 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ int int_png_load(const char *name, unsigned char **buffer, int* xp, int* yp, int
png_infop info_ptr;
png_uint_32 width, height;
unsigned int i;
int bit_depth, color_type, interlace_type, number_passes, pass, int_bpp = 3;
int bit_depth, color_type, interlace_type, number_passes, pass, int_bpp;
png_byte * fbptr;
FILE * fh;
@@ -100,6 +100,7 @@ int int_png_load(const char *name, unsigned char **buffer, int* xp, int* yp, int
png_set_strip_alpha(png_ptr);
if (bit_depth < 8)
png_set_packing(png_ptr);
int_bpp = 3;
}
if (bit_depth == 16)
png_set_strip_16(png_ptr);