aix: fix nullptr check in uv__skip_lines (#4892)

Fixes: https://github.com/libuv/libuv/issues/4891
This commit is contained in:
Ben Noordhuis 2025-09-25 20:21:54 +02:00 committed by GitHub
parent cfdce92fa5
commit 553bb9858f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)++;