aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-22 12:30:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-22 12:30:24 +0000
commit39923b50f8aaf8c70651a0732944416b822d4d93 (patch)
treee89e3603bfb4f18942ea3a13d11210c162d18669 /package
parent539e529fb5a786aa8fe8b6241ef032d7fd7d835a (diff)
downloadmaster-187ad058-39923b50f8aaf8c70651a0732944416b822d4d93.tar.gz
master-187ad058-39923b50f8aaf8c70651a0732944416b822d4d93.tar.bz2
master-187ad058-39923b50f8aaf8c70651a0732944416b822d4d93.zip
[package] iwinfo: fix logic flaw in mtd partition check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30678 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/iwinfo/src/iwinfo_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/iwinfo/src/iwinfo_utils.c b/package/iwinfo/src/iwinfo_utils.c
index 5ca101683f..b21f791a65 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;