Skip to content

Commit

Permalink
Initialise toclear_value in gnc_autoclear_window_ok_cb()
Browse files Browse the repository at this point in the history
If "test for valid value" is false, errmsg is set which means there is then
a read of "toclear_value" which has not been initialised.

Initialise it to indicate an error with the value.
  • Loading branch information
nomis committed Jun 24, 2023
1 parent 069eb61 commit ab6c637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/gnome/window-autoclear.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ gnc_autoclear_window_ok_cb (GtkWidget *widget,
AutoClearWindow *data)
{
GList *toclear_list = NULL;
gnc_numeric toclear_value;
gnc_numeric toclear_value = gnc_numeric_error (GNC_ERROR_ARG);
gchar *errmsg = NULL;
GError* error = NULL;

Expand Down

0 comments on commit ab6c637

Please sign in to comment.