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