Ignore:
Timestamp:
Apr 11, 2015, 10:51:59 AM (6 years ago)
Author:
mikedld
Message:

#5908: Check for tr_loadFile return value instead of errno in tr_variantFromFile

Seems like there could be a defect in uClibc making errno not
thread-local. Don't rely on errno value but check function return value
instead which is a better failure indicator.

Return errors from tr_loadFile and tr_variantFromFile via tr_error.
Fix tr_sessionLoadSettings to not fail on Windows if settings.json
does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r14490 r14491  
    376376
    377377      /* read in user-dirs.dirs and look for the download dir entry */
    378       content = (char *) tr_loadFile (config_file, &content_len);
     378      content = (char *) tr_loadFile (config_file, &content_len, NULL);
    379379      if (content && content_len>0)
    380380        {
Note: See TracChangeset for help on using the changeset viewer.