Changeset 14282
- Timestamp:
- May 18, 2014, 8:47:58 PM (9 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/crypto-test.c
r14241 r14282 30 30 31 31 check (!tr_cryptoHasTorrentHash (&a)); 32 #ifdef NDEBUG33 32 check (tr_cryptoGetTorrentHash (&a) == NULL); 34 #endif35 33 36 34 tr_cryptoSetTorrentHash (&a, hash); … … 52 50 tr_cryptoSetTorrentHash (&a, NULL); 53 51 check (!tr_cryptoHasTorrentHash (&a)); 54 #ifdef NDEBUG55 52 check (tr_cryptoGetTorrentHash (&a) == NULL); 56 #endif57 53 58 54 tr_cryptoDestruct (&a); -
trunk/libtransmission/crypto.c
r14241 r14282 283 283 { 284 284 assert (crypto); 285 assert (crypto->torrentHashIsSet); 286 287 return crypto->torrentHash; 285 286 return crypto->torrentHashIsSet ? crypto->torrentHash : NULL; 288 287 } 289 288
Note: See TracChangeset
for help on using the changeset viewer.