# HG changeset patch # User ib # Date 1345036216 0 # Node ID 13e5444562fd5787338d3e2c41c9199ed3205af3 # Parent 5b01e1e9d9efc8117f9a55682c3ea3135c38167d Initialize variable. It may be used uninitialized else. diff -r 5b01e1e9d9ef -r 13e5444562fd gui/win32/skinload.c --- a/gui/win32/skinload.c Wed Aug 15 13:02:31 2012 +0000 +++ b/gui/win32/skinload.c Wed Aug 15 13:10:16 2012 +0000 @@ -149,7 +149,7 @@ int src_stride[4] = { 4 * bmp.Width, 0, 0, 0 }; uint8_t *dst[4] = { NULL, NULL, NULL, NULL }; int dst_stride[4]; - enum PixelFormat out_pix_fmt; + enum PixelFormat out_pix_fmt = PIX_FMT_NONE; struct SwsContext *sws; if (skin->desktopbpp == 16) out_pix_fmt = PIX_FMT_RGB555; else if (skin->desktopbpp == 24) out_pix_fmt = PIX_FMT_RGB24;