fix -Wmaybe-uninitialized warnings in dbg_api.c
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 27 Nov 2016 06:43:17 +0000 (07:43 +0100)
committerOleksij Rempel <linux@rempel-privat.de>
Fri, 16 Dec 2016 11:23:14 +0000 (12:23 +0100)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/cmnos/dbg_api.c

index 583ca579518012120565b2d77f87e1edd119f441..04dce3de7e9aa323da3c51a6de6c962ba08650fc 100755 (executable)
@@ -442,7 +442,7 @@ int db_help_cmd(char *cmd, char *param1, char *param2, char *param3)
 
 static int db_ldr_cmd(char *cmd, char *param1, char *param2, char *param3)
 {
-       unsigned long val;
+       unsigned long val = 0;
        unsigned long addr;
        char val_str[20];
        char addr_str[20];