]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common/cmd_pxe.c: Fix GCC 4.6 build warnings
authorHeiko Schocher <hs@denx.de>
Mon, 12 Dec 2011 20:37:17 +0000 (20:37 +0000)
committerAnatolij Gustschin <agust@denx.de>
Tue, 20 Dec 2011 21:28:51 +0000 (22:28 +0100)
Fix:
cmd_pxe.c: In function 'parse_pxefile_top':
cmd_pxe.c:941:5: warning: 'err' may be used uninitialized in this
  function [-Wuninitialized]
cmd_pxe.c:921:6: note: 'err' was declared here

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Jason Hobbs <jason.hobbs@calxeda.com>
Acked-by: Jason Hobbs <jason.hobbs@calxeda.com>
common/cmd_pxe.c

index 9426f5b05bc6eec210d753d4cb167308c67475e9..7c0cb666681aa0c2ca8327da7524d28b9ca85066 100644 (file)
@@ -918,7 +918,7 @@ static int parse_menu(char **c, struct pxe_menu *cfg, char *b, int nest_level)
 {
        struct token t;
        char *s = *c;
-       int err;
+       int err = 0;
 
        get_token(c, &t, L_KEYWORD);