Introduce printf_term() macro and use it.
[geeqie.git] / src / rcfile.c
index 5dd1f5a..ff1d5b0 100644 (file)
@@ -273,12 +273,7 @@ void save_options(void)
        g_free(rc_pathl);
        if (!ssi)
                {
-               gchar *buf;
-
-               buf = g_strdup_printf(_("error saving config file: %s\n"), rc_path);
-               print_term(buf);
-               g_free(buf);
-
+               printf_term(_("error saving config file: %s\n"), rc_path);
                g_free(rc_path);
                return;
                }
@@ -524,13 +519,8 @@ void save_options(void)
        
        if (secure_close(ssi))
                {
-               gchar *buf;
-
-               buf = g_strdup_printf(_("error saving config file: %s\nerror: %s\n"), rc_path,
-                                     secsave_strerror(secsave_errno));
-               print_term(buf);
-               g_free(buf);
-
+               printf_term(_("error saving config file: %s\nerror: %s\n"), rc_path,
+                           secsave_strerror(secsave_errno));
                g_free(rc_path);
                return;
                }