ret = -1;
}
+end:
if (ret == -EINVAL) {
const char *opt_name = "unknown";
int i;
WARN("Invalid argument provided for option \"%s\", using default value.",
opt_name);
}
-end:
+
return ret;
}
if (is_root) {
rundir = strdup(DEFAULT_LTTNG_RUNDIR);
+ if (!rundir) {
+ ret = -ENOMEM;
+ goto error;
+ }
/* Create global run dir with root access */
ret = create_lttng_rundir(rundir);