[evince] libdocument: Fix -Wshadow warning
- From: Christian Persch <chpe src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [evince] libdocument: Fix -Wshadow warning
 
- Date: Fri, 26 Jul 2013 20:31:39 +0000 (UTC)
 
commit ea04966047214156b294167506bf74a4fd4e33bc
Author: Christian Persch <chpe gnome org>
Date:   Fri Jul 26 21:39:23 2013 +0200
    libdocument: Fix -Wshadow warning
 libdocument/ev-backend-info.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libdocument/ev-backend-info.c b/libdocument/ev-backend-info.c
index 6d84565..68c84c0 100644
--- a/libdocument/ev-backend-info.c
+++ b/libdocument/ev-backend-info.c
@@ -142,7 +142,6 @@ GList
         while ((dirent = g_dir_read_name (dir))) {
                 EvBackendInfo *info;
                 gchar         *file;
-                GError        *error = NULL;
 
                 if (!g_str_has_suffix (dirent, EV_BACKENDS_EXTENSION))
                         continue;
@@ -152,7 +151,7 @@ GList
                 if (error != NULL) {
                         g_warning ("Failed to load backend info from '%s': %s\n",
                                    file, error->message);
-                        g_error_free (error);
+                        g_clear_error (&error);
                 }
                 g_free (file);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]