diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-22 12:30:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-22 12:30:24 +0000 |
commit | 39923b50f8aaf8c70651a0732944416b822d4d93 (patch) | |
tree | e89e3603bfb4f18942ea3a13d11210c162d18669 /package/iwinfo | |
parent | 539e529fb5a786aa8fe8b6241ef032d7fd7d835a (diff) | |
download | upstream-39923b50f8aaf8c70651a0732944416b822d4d93.tar.gz upstream-39923b50f8aaf8c70651a0732944416b822d4d93.tar.bz2 upstream-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/iwinfo')
-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 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; |