(gtk) remember to clear out the error pointer

This commit is contained in:
Jordan Lee 2013-01-21 03:18:44 +00:00
parent 2d27689b1b
commit dc42791380
1 changed files with 1 additions and 1 deletions

View 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;