1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 16:43:09 +02:00

[package] iwinfo: fix logic flaw in mtd partition check

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30678 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-02-22 12:30:24 +00:00
parent 22c94fc859
commit 1f56b7d162

View 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;