Fix: add_trigger.c: `goto error` with a wrong UID for `--owner-uid`
[lttng-tools.git] / src / bin / lttng / commands / add_trigger.c
index 9c6b2cceb7714428092697b881d49a42241e0671..ac086891042d41af4c836f62b335e3a39ee78a7c 100644 (file)
@@ -2200,6 +2200,7 @@ int cmd_add_trigger(int argc, const char **argv)
                uid = strtol(owner_uid, &end, 10);
                if (end == owner_uid || *end != '\0' || errno != 0) {
                        ERR("Failed to parse `%s` as a user id.", owner_uid);
+                       goto error;
                }
 
                trigger_status = lttng_trigger_set_owner_uid(trigger, uid);
This page took 0.022655 seconds and 4 git commands to generate.