mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Explicitly compare result of str(n)cmp/memcmp to signify that it's not boolean
This commit is contained in:
@@ -290,11 +290,11 @@ tr_main (int argc,
|
||||
{
|
||||
tr_ctorSetMetainfo (ctor, fileContents, fileLength);
|
||||
}
|
||||
else if (!memcmp (torrentPath, "magnet:?", 8))
|
||||
else if (memcmp (torrentPath, "magnet:?", 8) == 0)
|
||||
{
|
||||
tr_ctorSetMetainfoFromMagnetLink (ctor, torrentPath);
|
||||
}
|
||||
else if (!memcmp (torrentPath, "http", 4))
|
||||
else if (memcmp (torrentPath, "http", 4) == 0)
|
||||
{
|
||||
tr_webRun (h, torrentPath, onTorrentFileDownloaded, ctor);
|
||||
waitingOnWeb = true;
|
||||
|
||||
Reference in New Issue
Block a user