Ignore:
Timestamp:
Mar 13, 2016, 10:11:01 PM (5 years ago)
Author:
mikedld
Message:

Explicitly compare result of str(n)cmp/memcmp to signify that it's not boolean

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r14633 r14718  
    390390                  *end = '\0';
    391391
    392                   if (!memcmp (value, "$HOME/", 6))
     392                  if (memcmp (value, "$HOME/", 6) == 0)
    393393                    user_dir = tr_buildPath (getHomeDir (), value+6, NULL);
    394                   else if (!strcmp (value, "$HOME"))
     394                  else if (strcmp (value, "$HOME") == 0)
    395395                    user_dir = tr_strdup (getHomeDir ());
    396396                  else
Note: See TracChangeset for help on using the changeset viewer.