From 553bb9858f46eaf2ad877c9de4bb49059820ec71 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 25 Sep 2025 20:21:54 +0200 Subject: [PATCH] aix: fix nullptr check in uv__skip_lines (#4892) Fixes: https://github.com/libuv/libuv/issues/4891 --- src/unix/aix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/aix.c b/src/unix/aix.c index 6666564c5..fdb171e98 100644 --- a/src/unix/aix.c +++ b/src/unix/aix.c @@ -632,7 +632,7 @@ static int uv__skip_lines(char **p, int n) { while(n > 0) { *p = strchr(*p, '\n'); - if (!p) + if (!*p) return lines; (*p)++;