X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fsession-config.c;h=b1fa992fe0f65c02f922ea99d4d6d3c632d23b1c;hp=595e743b45de0cc3de1e7a82de8b1a0d635e7bf7;hb=a416382b7be5ed002816bd6fae22eb9b2048c252;hpb=b33f872b72c7c01ded6bd7d0604d6aec7fa5721b diff --git a/src/common/config/session-config.c b/src/common/config/session-config.c index 595e743b4..b1fa992fe 100644 --- a/src/common/config/session-config.c +++ b/src/common/config/session-config.c @@ -177,7 +177,7 @@ const char * const config_loglevel_type_single = "SINGLE"; const char * const config_event_type_all = "ALL"; const char * const config_event_type_tracepoint = "TRACEPOINT"; const char * const config_event_type_probe = "PROBE"; -const char * const config_event_type_userspace_probe = "USERSPACE_PROBE"; +LTTNG_HIDDEN const char * const config_event_type_userspace_probe = "USERSPACE_PROBE"; const char * const config_event_type_function = "FUNCTION"; const char * const config_event_type_function_entry = "FUNCTION_ENTRY"; const char * const config_event_type_noop = "NOOP"; @@ -250,7 +250,7 @@ int config_get_section_entries(const char *override_path, const char *section, config_entry_handler_cb handler, void *user_data) { int ret = 0; - char *path; + const char *path; FILE *config_file = NULL; struct handler_filter_args filter = { section, handler, user_data }; @@ -1633,6 +1633,7 @@ process_userspace_probe_tracepoint_attribute_node( lttng_userspace_probe_location_tracepoint_create( binary_path, provider_name, probe_name, lookup_method); + lookup_method = NULL; goto error; } } @@ -3531,7 +3532,7 @@ int config_load_session(const char *path, const char *session_name, } if (!path) { - char *home_path; + const char *home_path; const char *sys_path; /* Try home path */