Commit dc00237e authored by Sam Lantinga's avatar Sam Lantinga

Fixed uninitialized variable warnings

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401813
parent 851c3b8f
...@@ -155,7 +155,7 @@ size_t SDL_iconv(SDL_iconv_t cd, ...@@ -155,7 +155,7 @@ size_t SDL_iconv(SDL_iconv_t cd,
/* For simplicity, we'll convert everything to and from UCS-4 */ /* For simplicity, we'll convert everything to and from UCS-4 */
char *src, *dst; char *src, *dst;
size_t srclen, dstlen; size_t srclen, dstlen;
Uint32 ch; Uint32 ch = 0;
size_t total; size_t total;
if ( !inbuf || !*inbuf ) { if ( !inbuf || !*inbuf ) {
......
...@@ -149,7 +149,7 @@ void copy_row3(Uint8 *src, int src_w, Uint8 *dst, int dst_w) ...@@ -149,7 +149,7 @@ void copy_row3(Uint8 *src, int src_w, Uint8 *dst, int dst_w)
{ {
int i; int i;
int pos, inc; int pos, inc;
Uint8 pixel[3]; Uint8 pixel[3] = { 0, 0, 0 };
pos = 0x10000; pos = 0x10000;
inc = (src_w << 16) / dst_w; inc = (src_w << 16) / dst_w;
......
...@@ -246,8 +246,8 @@ void X11_SetCaptionNoLock(_THIS, const char *title, const char *icon) ...@@ -246,8 +246,8 @@ void X11_SetCaptionNoLock(_THIS, const char *title, const char *icon)
Status status; Status status;
#ifdef X_HAVE_UTF8_STRING #ifdef X_HAVE_UTF8_STRING
Atom _NET_WM_NAME; Atom _NET_WM_NAME = 0;
Atom _NET_WM_ICON_NAME; Atom _NET_WM_ICON_NAME = 0;
/* Look up some useful Atoms */ /* Look up some useful Atoms */
if (SDL_X11_HAVE_UTF8) { if (SDL_X11_HAVE_UTF8) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment