summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Bazhenov <bazhenov.dn@gmail.com>2017-08-02 13:09:48 +0500
committerDmitry Bazhenov <bazhenov.dn@gmail.com>2017-08-02 13:11:33 +0500
commit05261aa517e2fc1fb8599a231accab632ff31d90 (patch)
treeb3981d7b277f07f7d4193937b20937dc9a7fcce8
parent4e41166c6646e007efa58cdfaf627e5af2dbcefb (diff)
downloadipmi-fru-parser-05261aa517e2fc1fb8599a231accab632ff31d90.tar.gz
ipmi-fru-parser-05261aa517e2fc1fb8599a231accab632ff31d90.zip
read-eeprom: fix fruid_str empty check.
fruid_str argument value is not empty checked. Instead, the eeprom_file value is checked twice. This patch fixes the fruid_str empty check. Change-Id: Iee54a882926eeec4460ff8d46689a23fe94b7651 Signed-off-by: Dmitry Bazhenov <bazhenov.dn@gmail.com>
-rw-r--r--readeeprom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/readeeprom.cpp b/readeeprom.cpp
index 1b47cb8..ef7e559 100644
--- a/readeeprom.cpp
+++ b/readeeprom.cpp
@@ -34,7 +34,7 @@ int main(int argc, char **argv)
}
auto fruid_str = (*cli_options)["fruid"];
- if (eeprom_file == ArgumentParser::empty_string)
+ if (fruid_str == ArgumentParser::empty_string)
{
// User has not passed in the appropriate argument value
exit_with_error("fruid data not found.", argv);
OpenPOWER on IntegriCloud