1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-13 18:04:43 +00:00

(trunk gtk) #2198: crashed with SIGSEGV in notify.c's notifyCallback()

This commit is contained in:
Charles Kerr 2009-06-11 14:59:50 +00:00
parent 6e10ee3baa
commit c2dd366154

View file

@ -51,12 +51,14 @@ notifyCallback( NotifyNotification * n UNUSED,
{
tr_torrent * tor = tr_torrent_handle( gtor );
const tr_info * info = tr_torrent_info( gtor );
char * path =
g_build_filename( tr_torrentGetDownloadDir(
tor ), info->files[0].name, NULL );
if( tor && info )
{
const char * dir = tr_torrentGetDownloadDir( tor );
char * path = g_build_filename( dir, info->files[0].name, NULL );
gtr_open_file( path );
g_free( path );
}
}
}
static gboolean