X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_trigger.c;h=e4342cf85d99a7dfb149f85c702bd57cf99e7bfd;hb=a3088f1a14942fade23f14d778ca635305fb6e84;hp=19a1c59e76e80a960f95d8223711a91465206aa9;hpb=20a01d1592c8e83d2dfe51cbd192857537ae7d4e;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_trigger.c b/src/bin/lttng/commands/add_trigger.c index 19a1c59e7..e4342cf85 100644 --- a/src/bin/lttng/commands/add_trigger.c +++ b/src/bin/lttng/commands/add_trigger.c @@ -237,7 +237,7 @@ static int parse_kernel_probe_opts(const char *source, *location = lttng_kernel_probe_location_symbol_create( symbol_name, offset); - if (!location) { + if (!*location) { ERR("Failed to create symbol kernel probe location."); goto error; }