diff options
Diffstat (limited to 'libbb/simplify_path.c')
-rw-r--r-- | libbb/simplify_path.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/simplify_path.c b/libbb/simplify_path.c index 171798e60..b714c66b6 100644 --- a/libbb/simplify_path.c +++ b/libbb/simplify_path.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <stdlib.h> | ||
11 | #include "libbb.h" | 10 | #include "libbb.h" |
12 | 11 | ||
13 | char *bb_simplify_path(const char *path) | 12 | char *bb_simplify_path(const char *path) |
@@ -15,7 +14,7 @@ char *bb_simplify_path(const char *path) | |||
15 | char *s, *start, *p; | 14 | char *s, *start, *p; |
16 | 15 | ||
17 | if (path[0] == '/') | 16 | if (path[0] == '/') |
18 | start = bb_xstrdup(path); | 17 | start = xstrdup(path); |
19 | else { | 18 | else { |
20 | s = xgetcwd(NULL); | 19 | s = xgetcwd(NULL); |
21 | start = concat_path_file(s, path); | 20 | start = concat_path_file(s, path); |