cleanup imagetag
authorFlorian Fainelli <florian@openwrt.org>
Wed, 18 Mar 2009 17:18:25 +0000 (17:18 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 18 Mar 2009 17:18:25 +0000 (17:18 +0000)
SVN-Revision: 14941

tools/firmware-utils/src/imagetag.c

index f04f662c62d0a31a9d07eb88e0ccb71cc1bc0c4c..af37992fae803de94ceffea1e721d5a82d93bbdf 100644 (file)
@@ -239,11 +239,11 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin,
 int main(int argc, char **argv)
 {
        int c;
-       char *kernel, *rootfs, *bin, *boardid, *chipid, *magic2 = NULL, *ver = NULL;
+       char *kernel, *rootfs, *bin, *boardid, *chipid, *magic2, *ver;
        uint32_t flashstart, fwoffset, loadaddr, entry;
        uint32_t fwaddr, flash_bs;
        
-       kernel = rootfs = bin = boardid = chipid = NULL;
+       kernel = rootfs = bin = boardid = chipid = magic2 = ver = NULL;
        entry = 0;
 
        flashstart = DEFAULT_FLASH_START;