comparison src/stdlib/SDL_iconv.c @ 1849:b5a4ac87b98c

Fixed uninitialized variable warnings
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 15:08:46 +0000
parents c99e7a9c9bc9
children c121d94672cb f16c15f3bc2b
comparison
equal deleted inserted replaced
1848:3c5eed71a332 1849:b5a4ac87b98c
153 char **outbuf, size_t *outbytesleft) 153 char **outbuf, size_t *outbytesleft)
154 { 154 {
155 /* For simplicity, we'll convert everything to and from UCS-4 */ 155 /* For simplicity, we'll convert everything to and from UCS-4 */
156 char *src, *dst; 156 char *src, *dst;
157 size_t srclen, dstlen; 157 size_t srclen, dstlen;
158 Uint32 ch; 158 Uint32 ch = 0;
159 size_t total; 159 size_t total;
160 160
161 if ( !inbuf || !*inbuf ) { 161 if ( !inbuf || !*inbuf ) {
162 /* Reset the context */ 162 /* Reset the context */
163 return 0; 163 return 0;