resources: Use g_set_error_literal where appropriate
authorChristian Persch <chpe@gnome.org>
Sat, 14 Jan 2012 20:13:03 +0000 (21:13 +0100)
committerChristian Persch <chpe@gnome.org>
Sun, 15 Jan 2012 12:03:09 +0000 (13:03 +0100)
gio/gresourcefile.c

index a261098..3a27474 100644 (file)
@@ -453,9 +453,8 @@ g_resource_file_query_info (GFile                *file,
                           resource->path);
            }
          else
-           g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                        "%s",
-                        my_error->message);
+           g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
+                                 my_error->message);
          g_clear_error (&my_error);
          return FALSE;
        }
@@ -554,9 +553,8 @@ g_resource_file_read (GFile         *file,
                       resource->path);
        }
       else
-       g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                    "%s",
-                    my_error->message);
+       g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
+                             my_error->message);
       g_clear_error (&my_error);
       return NULL;
     }