[package] iwinfo: fix logic flaw in mtd partition check
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 22 Feb 2012 12:30:24 +0000 (12:30 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 22 Feb 2012 12:30:24 +0000 (12:30 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30678 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/iwinfo/src/iwinfo_utils.c

index 5ca1016..b21f791 100644 (file)
@@ -165,7 +165,7 @@ int iwinfo_hardware_id_from_mtd(struct iwinfo_hardware_id *id)
        while (fgets(buf, sizeof(buf), mtd) > 0)
        {
                if (fscanf(mtd, "mtd%d: %*x %x %127s", &off, &len, buf) < 3 ||
-                   strcmp(buf, "\"boardconfig\"") || strcmp(buf, "\"EEPROM\""))
+                   (strcmp(buf, "\"boardconfig\"") && strcmp(buf, "\"EEPROM\"")))
                {
                        off = -1;
                        continue;
This page took 0.025655 seconds and 4 git commands to generate.