gnucash master: One more empty string test for PR#1527

Geert Janssens gjanssens at code.gnucash.org
Wed Feb 22 04:51:56 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/7fbe4253 (commit)
	from  https://github.com/Gnucash/gnucash/commit/45cdf407 (commit)



commit 7fbe42530fd4dafc5aff23d53b738ef5d213c791
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Wed Feb 22 10:51:49 2023 +0100

    One more empty string test for PR#1527

diff --git a/gnucash/gnome-utils/dialog-account.c b/gnucash/gnome-utils/dialog-account.c
index f576046b9..8da537981 100644
--- a/gnucash/gnome-utils/dialog-account.c
+++ b/gnucash/gnome-utils/dialog-account.c
@@ -2293,7 +2293,7 @@ gnc_account_renumber_response_cb (GtkDialog *dialog,
         for (tmp = children, i = 1; tmp; tmp = g_list_next (tmp), i += 1)
         {
             gchar *str;
-            if (strlen (prefix))
+            if (prefix && *prefix)
                 str = g_strdup_printf ("%s-%0*d", prefix,
                                        num_digits, interval * i);
             else



Summary of changes:
 gnucash/gnome-utils/dialog-account.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list