summaryrefslogtreecommitdiff
path: root/Detail.c
diff options
context:
space:
mode:
authorMaciej Naruszewicz <maciej.naruszewicz@intel.com>2012-10-02 16:37:48 +1000
committerNeilBrown <neilb@suse.de>2012-10-02 16:37:48 +1000
commit9590cb42766ac0120d2c2e9e766de3c17d67a902 (patch)
tree07186d83910cd24ddab0aa41e995aa007230d063 /Detail.c
parente50cf22073d583984d7592efb3a97047be0abfd4 (diff)
Fix return code for --detail-platform
Variable 'err' is initially set to 1, so changing its value with '|=' won't set it to 0 even if the operation is successful. Signed-off-by: Maciej Naruszewicz <maciej.naruszewicz@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Detail.c b/Detail.c
index db38916b..f3a1e3e1 100644
--- a/Detail.c
+++ b/Detail.c
@@ -640,6 +640,7 @@ int Detail_Platform(struct superswitch *ss, int scan, int verbose, int export)
if (!scan)
return err;
+ err = 0;
for (i = 0; superlist[i]; i++) {
struct superswitch *meta = superlist[i];