if( !trashed ) {
GError * err = NULL;
- trashed = g_file_delete( file, NULL, &err );
+ g_file_delete( file, NULL, &err );
if( err ) {
g_message( "Unable to delete file \"%s\": %s", filename, err->message );
g_clear_error( &err );
void
gtr_open_file( const char * path )
{
- char * uri = NULL;
+ char * uri;
GFile * file = g_file_new_for_path( path );
- uri = g_file_get_uri( file );
g_object_unref( G_OBJECT( file ) );
if( g_path_is_absolute( path ) )