Skip to content

Commit

Permalink
Fixed uninitialized variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 17, 2006
1 parent d14b312 commit b2e96ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/stdlib/SDL_iconv.c
Expand Up @@ -155,7 +155,7 @@ size_t SDL_iconv(SDL_iconv_t cd,
/* For simplicity, we'll convert everything to and from UCS-4 */
char *src, *dst;
size_t srclen, dstlen;
Uint32 ch;
Uint32 ch = 0;
size_t total;

if ( !inbuf || !*inbuf ) {
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_stretch.c
Expand Up @@ -149,7 +149,7 @@ void copy_row3(Uint8 *src, int src_w, Uint8 *dst, int dst_w)
{
int i;
int pos, inc;
Uint8 pixel[3];
Uint8 pixel[3] = { 0, 0, 0 };

pos = 0x10000;
inc = (src_w << 16) / dst_w;
Expand Down
4 changes: 2 additions & 2 deletions src/video/x11/SDL_x11wm.c
Expand Up @@ -246,8 +246,8 @@ void X11_SetCaptionNoLock(_THIS, const char *title, const char *icon)
Status status;

#ifdef X_HAVE_UTF8_STRING
Atom _NET_WM_NAME;
Atom _NET_WM_ICON_NAME;
Atom _NET_WM_NAME = 0;
Atom _NET_WM_ICON_NAME = 0;

/* Look up some useful Atoms */
if (SDL_X11_HAVE_UTF8) {
Expand Down

0 comments on commit b2e96ab

Please sign in to comment.