Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=9f74c56a7849080f715f730128d8e21050731eb0

commit 9f74c56a7849080f715f730128d8e21050731eb0
Author: Priyank <[EMAIL PROTECTED]>
Date:   Sun Nov 18 15:29:47 2007 +0530

gfpm.c: removed a reference to a NULL pointer
* Removed an unused GError object

diff --git a/src/gfpm.c b/src/gfpm.c
index 2608b20..99231a7 100644
--- a/src/gfpm.c
+++ b/src/gfpm.c
@@ -39,7 +39,6 @@ int
main (int argc, char *argv[])
{
gchar *path;
-       GError *error = NULL;

setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
@@ -52,9 +51,7 @@ main (int argc, char *argv[])

if (!(xml=glade_xml_new(path, NULL, "UTF-8")))
{
-               gchar *errstr = g_strdup_printf ("%s%s", _("Failed to 
initialize interface: "), error->message);
-               gfpm_error (_("Interface initialization failed"), errstr);
-               g_free (errstr);
+               gfpm_error (_("Failed to initialize interface"));
return 1;
}
g_free (path);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to