Signed-off-by: David Goulet <dgoulet@efficios.com>
fp = open_config(path, "r");
if (fp == NULL) {
ERR("Can't find valid lttng config %s/.lttngrc", path);
- MSG("Did you create a session? (lttng create <my_sesion>)");
+ MSG("Did you create a session? (lttng create <my_session>)");
goto error;
}
if ((ret = fscanf(fp, "%[^'=']=%s\n", var, session_name)) != 2) {
if (ret == -1) {
ERR("Missing session=NAME in config file.");
- goto error;
+ goto error_close;
}
continue;
}
}
}
+error_close:
fclose(fp);
error: