Changeset 11479
- Timestamp:
- Dec 5, 2010, 6:56:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0x/libtransmission/torrent-magnet.c
r10843 r11479 117 117 char * infoContents = tr_bencToStr( infoDict, TR_FMT_BENC, &infoLen ); 118 118 const uint8_t * i = (const uint8_t*) tr_memmem( (char*)fileContents, fileLen, infoContents, infoLen ); 119 offset = i == NULL ? i - fileContents : 0;119 offset = i != NULL ? i - fileContents : 0; 120 120 tr_free( infoContents ); 121 121 }
Note: See TracChangeset
for help on using the changeset viewer.