File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -133,20 +133,11 @@ namespace
133
133
if (!file)
134
134
configError (" missing or inaccessible file" , key, filename.c_str ());
135
135
136
- // skip first empty lines
137
- do
138
- {
139
- if (feof (file))
140
- break ;
141
-
142
- if (!temp.LoadFromFile (file))
143
- break ;
144
-
145
- temp.alltrim (" \t\r " );
146
- } while (temp.isEmpty ());
136
+ if (temp.LoadFromFile (file))
137
+ temp.alltrim (" \r " );
147
138
148
139
if (temp.isEmpty ())
149
- configError (" empty file" , key, filename.c_str ());
140
+ configError (" first empty line of file" , key, filename.c_str ());
150
141
}
151
142
152
143
output = temp.c_str ();
@@ -167,6 +158,7 @@ namespace
167
158
if (output.username .hasData ())
168
159
configError (" multiple values" , output.database , " username" );
169
160
parseExternalValue (key, value, output.username );
161
+ output.username .rtrim (" " );
170
162
}
171
163
else if (key.find (" password" ) == 0 )
172
164
{
You can’t perform that action at this time.
0 commit comments