diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-02-22 12:30:24 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-02-22 12:30:24 +0000 |
commit | 1f56b7d162b241c0e734de9b879af6772f9de886 (patch) | |
tree | e89e3603bfb4f18942ea3a13d11210c162d18669 | |
parent | 22c94fc859c7834b1c074ba492af6b514e694117 (diff) |
[package] iwinfo: fix logic flaw in mtd partition check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30678 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/iwinfo/src/iwinfo_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/iwinfo/src/iwinfo_utils.c b/package/iwinfo/src/iwinfo_utils.c index 5ca101683..b21f791a6 100644 --- a/package/iwinfo/src/iwinfo_utils.c +++ b/package/iwinfo/src/iwinfo_utils.c @@ -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; |