Skip to content

Commit

Permalink
Fix: Duplicate alert fallback filter string when copying it
Browse files Browse the repository at this point in the history
Fallback filter should be duplicated when copying it into the
alert filter but it was not.
  • Loading branch information
a-h-abdelsalam authored and timopollmeier committed May 2, 2024
1 parent fcb6cf4 commit 8cdcc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -12155,7 +12155,7 @@ generate_alert_filter_get (alert_t alert, const get_data_t *base_get_data,
else
{
(*alert_filter_get)->filt_id = NULL;
(*alert_filter_get)->filter = base_get_data->filter;
(*alert_filter_get)->filter = g_strdup (base_get_data->filter);
}

/* Adjust filter for report composer.
Expand Down

0 comments on commit 8cdcc1c

Please sign in to comment.