]> granicus.if.org Git - transmission/commitdiff
(gtk) remember to clear out the error pointer
authorJordan Lee <jordan@transmissionbt.com>
Mon, 21 Jan 2013 03:18:44 +0000 (03:18 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Mon, 21 Jan 2013 03:18:44 +0000 (03:18 +0000)
gtk/tr-core.c

index f84fd80922d9be3842598dfb8e7c83b74a2b7c68..b61b56f79f52c8d43ff9373ea2836397c576cc7b 100644 (file)
@@ -667,7 +667,7 @@ rename_torrent_and_unref_file (GFile * file)
   info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME, 0, NULL, NULL);
   if (info != NULL)
     {
-      GError * error;
+      GError * error = NULL;
       const char * old_name;
       char * new_name;
       GFile * new_file;