Initialise toclear_value in gnc_autoclear_window_ok_cb()

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.
This commit is contained in:
Simon Arlott 2023-06-24 12:50:00 +01:00
parent 069eb61a3f
commit ab6c6371ba
No known key found for this signature in database
GPG Key ID: DF001BFD83E75990

View File

@ -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;