Skip to content

Commit b56e800

Browse files
committed
Fix Coverity defect #1462988
1 parent a3ba1b6 commit b56e800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nvc_mount.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ mount_files(struct error *err, const struct nvc_container *cnt, const char *dir,
5050
end = path + strlen(path);
5151
mnt = ptr = array_new(err, size + 1); /* NULL terminated. */
5252
if (mnt == NULL)
53-
goto fail;
53+
return (NULL);
5454

5555
for (size_t i = 0; i < size; ++i) {
5656
file = basename(paths[i]);

0 commit comments

Comments
 (0)