summaryrefslogtreecommitdiffstats
path: root/support/misc
diff options
context:
space:
mode:
Diffstat (limited to 'support/misc')
-rw-r--r--support/misc/mountpoint.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/support/misc/mountpoint.c b/support/misc/mountpoint.c
index 2cf1324..750b6e8 100644
--- a/support/misc/mountpoint.c
+++ b/support/misc/mountpoint.c
@@ -22,9 +22,8 @@ is_mountpoint(char *path)
struct stat stb, pstb;
int rv;
- dotdot = malloc(strlen(path)+4);
- if (!dotdot)
- return 0;
+ dotdot = xmalloc(strlen(path)+4);
+
strcat(strcpy(dotdot, path), "/..");
if (lstat(path, &stb) != 0 ||
lstat(dotdot, &pstb) != 0)