]> git.sur5r.net Git - u-boot/commitdiff
common: fix 'dummy' is used uninitialized in this function warning
authorKim Phillips <kim.phillips@freescale.com>
Mon, 15 Jun 2009 16:50:40 +0000 (11:50 -0500)
committerWolfgang Denk <wd@denx.de>
Sun, 19 Jul 2009 19:37:02 +0000 (21:37 +0200)
fix this gcc 4.4 warning:

xyzModem.c: In function 'xyzModem_stream_open':
xyzModem.c:564: warning: 'dummy' is used uninitialized in this function

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
common/xyzModem.c

index a209dfa4af73d134bcf647511ad6cd7fabe9406f..7a46805e13363495103426e057e2d106545b7e0d 100644 (file)
@@ -544,7 +544,7 @@ xyzModem_stream_open (connection_info_t * info, int *err)
                          xyzModem_CHAR_TIMEOUT);
 #else
 /* TODO: CHECK ! */
-  int dummy;
+  int dummy = 0;
   xyz.__chan = &dummy;
 #endif
   xyz.len = 0;