From ab6c6371baf29f901aa97f7705d3be4a9eba9528 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 24 Jun 2023 12:50:00 +0100 Subject: [PATCH] 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. --- gnucash/gnome/window-autoclear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/gnome/window-autoclear.c b/gnucash/gnome/window-autoclear.c index 2f7f0e33d14..8434872191a 100644 --- a/gnucash/gnome/window-autoclear.c +++ b/gnucash/gnome/window-autoclear.c @@ -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;