diff options
Diffstat (limited to 'miscutils/mountpoint.c')
-rw-r--r-- | miscutils/mountpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c index 46b2d4e26..771df5588 100644 --- a/miscutils/mountpoint.c +++ b/miscutils/mountpoint.c | |||
@@ -46,8 +46,8 @@ int mountpoint_main(int argc, char **argv) | |||
46 | if (S_ISDIR(st.st_mode)) { | 46 | if (S_ISDIR(st.st_mode)) { |
47 | dev_t st_dev = st.st_dev; | 47 | dev_t st_dev = st.st_dev; |
48 | ino_t st_ino = st.st_ino; | 48 | ino_t st_ino = st.st_ino; |
49 | char *p; | 49 | char *p = bb_xasprintf("%s/..", arg); |
50 | bb_xasprintf(&p, "%s/..", arg); | 50 | |
51 | if (stat(p, &st) == 0) { | 51 | if (stat(p, &st) == 0) { |
52 | short ret = (st_dev != st.st_dev) || | 52 | short ret = (st_dev != st.st_dev) || |
53 | (st_dev == st.st_dev && st_ino == st.st_ino); | 53 | (st_dev == st.st_dev && st_ino == st.st_ino); |