Use g_error_new_literal when providing a ready string
authorAlberto Mardegan <alberto.mardegan@nokia.com>
Thu, 2 Dec 2010 12:44:15 +0000 (14:44 +0200)
committerAlberto Mardegan <alberto.mardegan@nokia.com>
Thu, 2 Dec 2010 12:44:15 +0000 (14:44 +0200)
libsignon-glib/signon-errors.c

index 2accdc8a2be42b795acebf217e8a8f656ffa42d7..89ed5be6cc7f884867ef4c024f20a4d7b7b8a53a 100644 (file)
@@ -74,7 +74,7 @@ _signon_errors_get_error_from_dbus (GError *error)
     if (enum_value)
         code = enum_value->value;
 
-    new_error = g_error_new (SIGNON_ERROR, code, error->message);
+    new_error = g_error_new_literal (SIGNON_ERROR, code, error->message);
 
     g_error_free (error);
     g_type_class_unref (enum_class);