From a31d09509c0547ce3239b5776edd59c01202f78c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 2 Jan 2023 00:57:23 +0100 Subject: fsys_get_children: Fix comparing strings --- libnetfs/fsys-get-children.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libnetfs/fsys-get-children.c') 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; } -- cgit v1.2.3