Fix: do not overwrite ret if already set and session found
[lttng-tools.git] / src / common / config / session-config.c
index 6c639af440143ab00d31631257a311b51160f8f6..503f49fad8ce441586e4473c01ca6bd9de488c0e 100644 (file)
@@ -2842,7 +2842,7 @@ end:
                }
        }
 
-       if (session_found) {
+       if (session_found && !ret) {
                ret = 0;
        }
 
This page took 0.027245 seconds and 4 git commands to generate.