We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e375e commit 89d08a0Copy full SHA for 89d08a0
src/cmd/netrcparser.cpp
@@ -56,6 +56,9 @@ bool NetrcParser::parse()
56
return false;
57
}
58
QString content = netrc.readAll();
59
+ if (content.isEmpty()) {
60
+ return false;
61
+ }
62
63
auto tokens = content.split(QRegularExpression("\\s+"));
64
@@ -71,9 +74,9 @@ bool NetrcParser::parse()
71
74
72
75
73
76
i++;
- if (i > tokens.count()) {
77
+ if (i >= tokens.count()) {
78
qDebug() << "error fetching value for" << key;
- return false;
79
+ break;
80
81
auto value = tokens[i];
82
0 commit comments