aboutsummaryrefslogtreecommitdiffstats
path: root/close_range.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-21 16:45:05 +0100
committerMattias Andrée <m@maandree.se>2025-03-21 16:47:15 +0100
commit889398f1f8ab762aa8d9ccc3bc0378059f76e86f (patch)
treed41e4920848e76bfff2bc667380b930e28d39f86 /close_range.c
parentmisc (diff)
downloadlibsimple-889398f1f8ab762aa8d9ccc3bc0378059f76e86f.tar.gz
libsimple-889398f1f8ab762aa8d9ccc3bc0378059f76e86f.tar.bz2
libsimple-889398f1f8ab762aa8d9ccc3bc0378059f76e86f.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'close_range.c')
-rw-r--r--close_range.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/close_range.c b/close_range.c
index 29602c9..096aa56 100644
--- a/close_range.c
+++ b/close_range.c
@@ -128,7 +128,7 @@ fallback:
} while (first++ < last);
out:
- (next)
+ if (next)
*next = last + (last < LIBSIMPLE_CLOSE_RANGE_MAX);
errno = saved_errno;
return 0;