Fix return code for --detail-platform From: Maciej Naruszewicz 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 --- Detail.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Detail.c b/Detail.c index 1d67bd2..1b3e17b 100644 --- a/Detail.c +++ b/Detail.c @@ -639,6 +639,7 @@ int Detail_Platform(struct superswitch *ss, int scan, int verbose, int export, c if (!scan) return err; + err = 0; for (i = 0; superlist[i]; i++) { struct superswitch *meta = superlist[i];