]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/misc/mountpoint.c
Further coverity related cleanups.
[nfs-utils.git] / support / misc / mountpoint.c
index 2cf1324fb17a9674109221fd49dde2643f65577a..750b6e81a602928e7a34404cb0d6cce775542c28 100644 (file)
@@ -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)