Fix: lttng: add-trigger: erroneous null check
[lttng-tools.git] / src / bin / lttng / commands / add_trigger.c
index 401fa762ece18648ab2fedd2b0a43f92292ee9f5..9d013122d76a812038ef369798f289b6aebaf995 100644 (file)
@@ -252,7 +252,7 @@ static int parse_kernel_probe_opts(const char *source,
 
                        *location = lttng_kernel_probe_location_symbol_create(
                                        symbol_name, 0);
 
                        *location = lttng_kernel_probe_location_symbol_create(
                                        symbol_name, 0);
-                       if (!location) {
+                       if (!*location) {
                                ERR("Failed to create symbol kernel probe location.");
                                goto error;
                        }
                                ERR("Failed to create symbol kernel probe location.");
                                goto error;
                        }
This page took 0.023113 seconds and 4 git commands to generate.