aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-02 00:57:23 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-02 00:57:23 +0100
commita31d09509c0547ce3239b5776edd59c01202f78c (patch)
tree2f465a1848a281a2430fcace57a948796c826461
parentc3804ab00e95b6b9e330275cb4ff1c10f8af5531 (diff)
downloadhurd-a31d09509c0547ce3239b5776edd59c01202f78c.tar.gz
hurd-a31d09509c0547ce3239b5776edd59c01202f78c.tar.bz2
hurd-a31d09509c0547ce3239b5776edd59c01202f78c.zip
fsys_get_children: Fix comparing strings
-rw-r--r--libdiskfs/fsys-get-children.c2
-rw-r--r--libnetfs/fsys-get-children.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/fsys-get-children.c b/libdiskfs/fsys-get-children.c
index d9be535a..8cc4d2cd 100644
--- a/libdiskfs/fsys-get-children.c
+++ b/libdiskfs/fsys-get-children.c
@@ -63,7 +63,7 @@ diskfs_S_fsys_get_children (struct diskfs_control *fsys,
c = NULL; /* c was freed by iohelp_return_malloced_buffer. */
if (err)
{
- if (*names != *orig_names)
+ if (*names != orig_names)
munmap (*names, n_len);
goto errout;
}
diff --git a/libnetfs/fsys-get-children.c b/libnetfs/fsys-get-children.c
index 4e78a8ca..9c5a8f95 100644
--- a/libnetfs/fsys-get-children.c
+++ b/libnetfs/fsys-get-children.c
@@ -63,7 +63,7 @@ netfs_S_fsys_get_children (struct netfs_control *fsys,
c = NULL; /* c was freed by iohelp_return_malloced_buffer. */
if (err)
{
- if (*names != *orig_names)
+ if (*names != orig_names)
munmap (*names, n_len);
goto errout;
}