netrc: do the loop on confirmed good instead of negative bad

This commit is contained in:
Daniel Stenberg 2025-03-01 00:14:59 +01:00
parent e2a694034c
commit 857042071d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -161,7 +161,7 @@ static NETRCcode parsenetrc(struct store_netrc *store,
if(!quoted) {
size_t len = 0;
CURLcode result;
while(!ISSPACE(*tok_end)) {
while(*tok_end > ' ') {
tok_end++;
len++;
}