]> git.sur5r.net Git - openocd/commitdiff
fix warning
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 14 Sep 2009 06:06:35 +0000 (06:06 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 14 Sep 2009 06:06:35 +0000 (06:06 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2704 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/cfi.c

index 66b94c966fcfb826dc7f5314e91135e0b499fe5f..7ba93718382b88877cb288a28d49c60400bc1184 100644 (file)
@@ -1448,7 +1448,7 @@ static int cfi_spansion_write_block(struct flash_bank_s *bank, uint8_t *buffer,
        armv4_5_info.core_state = ARMV4_5_STATE_ARM;
 
        /* flash write code */
-       int target_code_size;
+       int target_code_size = 0;
        if (!cfi_info->write_algorithm)
        {
                uint8_t *target_code;