X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_trigger.c;h=83fd1c4473c437897cf95caf08a49c999cf951f7;hb=5c6ca80951867d21c8a91b36560f0e18e4d2f232;hp=0c714d84962bcaf0d9a1b697bba27de0fefa1dc4;hpb=f8fd8e929b5e1e5a3b3532d51de3d6fa36071795;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_trigger.c b/src/bin/lttng/commands/add_trigger.c index 0c714d849..83fd1c447 100644 --- a/src/bin/lttng/commands/add_trigger.c +++ b/src/bin/lttng/commands/add_trigger.c @@ -273,7 +273,7 @@ static int parse_kernel_probe_opts(const char *source, address = strtoul(s_hex, NULL, 0); *location = lttng_kernel_probe_location_address_create(address); - if (!location) { + if (!*location) { ERR("Failed to create symbol kernel probe location."); goto error; }