aix: fix nullptr check in uv__skip_lines (#4892)
Fixes: https://github.com/libuv/libuv/issues/4891
This commit is contained in:
parent
cfdce92fa5
commit
553bb9858f
@ -632,7 +632,7 @@ static int uv__skip_lines(char **p, int n) {
|
|||||||
|
|
||||||
while(n > 0) {
|
while(n > 0) {
|
||||||
*p = strchr(*p, '\n');
|
*p = strchr(*p, '\n');
|
||||||
if (!p)
|
if (!*p)
|
||||||
return lines;
|
return lines;
|
||||||
|
|
||||||
(*p)++;
|
(*p)++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user