a little safety

This commit is contained in:
Mitchell Livingston 2006-06-15 22:07:05 +00:00
parent c1e764a03a
commit 72998f58c9
1 changed files with 2 additions and 2 deletions

View File

@ -545,9 +545,9 @@
int error;
if (fPrivateTorrent && hashString)
fHandle = tr_torrentInitSaved(fLib, [hashString UTF8String], TR_FSAVEPRIVATE, & error);
else if (path)
if (!fHandle && path)
fHandle = tr_torrentInit(fLib, [path UTF8String], fPrivateTorrent ? TR_FSAVEPRIVATE : 0, & error);
else;
if (!fHandle)
{