Changeset 13912 for trunk/libtransmission/resume.c
- Timestamp:
- Jan 31, 2013, 9:57:08 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/resume.c
r13868 r13912 729 729 && (str && *str)) 730 730 { 731 const bool is_current_dir = tor->currentDir == tor->downloadDir; 731 732 tr_free (tor->downloadDir); 732 733 tor->downloadDir = tr_strndup (str, len); 734 if (is_current_dir) 735 tor->currentDir = tor->downloadDir; 733 736 fieldsLoaded |= TR_FR_DOWNLOAD_DIR; 734 737 } … … 738 741 && (str && *str)) 739 742 { 743 const bool is_current_dir = tor->currentDir == tor->incompleteDir; 740 744 tr_free (tor->incompleteDir); 741 745 tor->incompleteDir = tr_strndup (str, len); 746 if (is_current_dir) 747 tor->currentDir = tor->incompleteDir; 742 748 fieldsLoaded |= TR_FR_INCOMPLETE_DIR; 743 749 }
Note: See TracChangeset
for help on using the changeset viewer.