mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
*! Fixed a bug where leading blanks in a filename would hang the program
while determining the corresponding file type.
This commit is contained in:
parent
8c1ac1a2fb
commit
b7bb7895bf
|
@ -18,7 +18,8 @@ string simplifyString( string const & str )
|
|||
|
||||
size_t beginPos = 0;
|
||||
|
||||
while( beginPos < str.size() && isblank( str[ beginPos ] ) );
|
||||
while( beginPos < str.size() && isblank( str[ beginPos ] ) )
|
||||
++beginPos;
|
||||
|
||||
size_t endPos = str.size();
|
||||
|
||||
|
|
Loading…
Reference in a new issue