From a2bd0291af3f86b81cd28bac49b42c757d13e15a Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Tue, 18 Sep 2012 13:26:53 +0200 Subject: [PATCH] Useless call to g_strdup_printf. --- libgtkform/fieldinteger.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libgtkform/fieldinteger.c b/libgtkform/fieldinteger.c index 47718ca..ccd9552 100644 --- a/libgtkform/fieldinteger.c +++ b/libgtkform/fieldinteger.c @@ -318,9 +318,10 @@ gtk_form_field_integer_is_valid (GtkFormField *field) if (str_value != NULL && g_strcmp0 (g_strstrip (str_value), "") != 0) { if (g_strcmp0 (g_strconcat (g_strdup_printf ("%d", value), - IS_GTK_FORM_WIDGET_SPIN (fw) ? g_strdup_printf (",%06d", 0) : "", NULL), + IS_GTK_FORM_WIDGET_SPIN (fw) ? ",000000" : "", NULL), str_value) != 0) - { + {g_message ("%s %s", g_strconcat (g_strdup_printf ("%d", value), + IS_GTK_FORM_WIDGET_SPIN (fw) ? ",000000" : "", NULL), str_value); g_free (str_value); return FALSE; } -- 2.49.0