&uevent, filter_expression, filter, NULL, wpipe);
/* We have passed ownership */
filter_expression = NULL;
- filter = NULL;
if (ret != LTTNG_OK && ret != LTTNG_ERR_UST_EVENT_ENABLED) {
goto error;
}
/* The wild card * means that everything should be enabled. */
if (strncmp(event->name, "*", 1) == 0 && strlen(event->name) == 1) {
ret = event_jul_enable_all(usess, event, filter);
+ filter = NULL;
} else {
ret = event_jul_enable(usess, event, filter);
+ filter = NULL;
}
if (ret != LTTNG_OK) {
goto error;