diff options
author | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-02-12 05:44:18 +0000 |
---|---|---|
committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-02-12 05:44:18 +0000 |
commit | 6b80f08c1e7c9a912d343cfe9d1310da6bb0a10e (patch) | |
tree | 91f23473eb813662482347128fac67e7f7aa6e3f /dmi.c | |
parent | 513c77c013cf2b546887ea9b07c891b37b310e6a (diff) | |
download | flashrom-6b80f08c1e7c9a912d343cfe9d1310da6bb0a10e.zip flashrom-6b80f08c1e7c9a912d343cfe9d1310da6bb0a10e.tar.gz |
Fix DMI match logic
This bug slipped in on changing back match-specific to match-any
Corresponding to flashrom svn r896.
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'dmi.c')
-rw-r--r-- | dmi.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -162,7 +162,8 @@ int dmi_match(const char *pattern) return 0; for (i = 0;i < DMI_ID_INVALID; i++) - return dmi_compare(dmistrings[i], pattern); + if(dmi_compare(dmistrings[i], pattern)) + return 1; return 0; } |