[nautilus/gnome-3-30] file: Null-initialize autofree variable



commit c81903e4a7540f96da6c64f145ce359c7d0b3282
Author: Ernestas Kulik <ekulik redhat com>
Date:   Tue Dec 11 10:52:50 2018 +0100

    file: Null-initialize autofree variable

 src/nautilus-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index b9ae81e08..7995f511f 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -2199,7 +2199,7 @@ real_batch_rename (GList                         *files,
 
     for (l1 = files, l2 = new_names; l1 != NULL && l2 != NULL; l1 = l1->next, l2 = l2->next)
     {
-        g_autofree gchar *new_file_name;
+        g_autofree gchar *new_file_name = NULL;
         file = NAUTILUS_FILE (l1->data);
         new_name = l2->data;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]