Rev 4257 | Rev 4268 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4257 | Rev 4266 | ||
---|---|---|---|
Line 97... | Line 97... | ||
97 | /* |
97 | /* |
98 | * We need to clone ncwd_path because canonify() works in-place and thus |
98 | * We need to clone ncwd_path because canonify() works in-place and thus |
99 | * the address in ncwd_path need not be the same as ncwd_path_nc, even |
99 | * the address in ncwd_path need not be the same as ncwd_path_nc, even |
100 | * though they both point into the same dynamically allocated buffer. |
100 | * though they both point into the same dynamically allocated buffer. |
101 | */ |
101 | */ |
102 | ncwd_path = strdup(ncwd_path); |
102 | ncwd_path = str_dup(ncwd_path); |
103 | free(ncwd_path_nc); |
103 | free(ncwd_path_nc); |
104 | if (!ncwd_path) { |
104 | if (!ncwd_path) { |
105 | futex_up(&cwd_futex); |
105 | futex_up(&cwd_futex); |
106 | return NULL; |
106 | return NULL; |
107 | } |
107 | } |