]> git.sur5r.net Git - openocd/commitdiff
cfi: fix release build warnings
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Mon, 10 Jan 2011 09:37:18 +0000 (09:37 +0000)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Mon, 10 Jan 2011 09:37:18 +0000 (09:37 +0000)
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/flash/nor/cfi.c

index 4fc800d43d2b5aa3a92dfd213194124bb1731e64..f462d72100c7c7907b9cc88cde90e45f6c58989c 100644 (file)
@@ -1663,8 +1663,8 @@ static int cfi_spansion_write_block(struct flash_bank *bank, uint8_t *buffer,
                return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;
        }
 
-       int target_code_size;
-       const uint32_t *target_code_src;
+       int target_code_size = 0;
+       const uint32_t *target_code_src = NULL;
 
        switch (bank->bus_width)
        {