1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[perf] Remove excessive check for "

Condition like while (A && (B || (!B && C)) can
be simplified to while (A && (B || C)).
This commit is contained in:
Tsarevich Dmitry 2020-02-23 19:33:31 +03:00
parent 7ddf983a85
commit 45ddcc9fed
No known key found for this signature in database
GPG key ID: E3C61298FF5B1274

View file

@ -89,7 +89,7 @@ static loc_cmd* get_loc_cmd(char c, char* line) {
}
r = i;
// locate ending quote
while ((line[i] != 0) && ((line[i] != '"') || ((line[i] == '"') && (line[i-1] == '\\')))) {
while ((line[i] != 0) && ((line[i] != '"') || ((line[i-1] == '\\')))) {
if ((line[i] == '"') && (line[i-1] == '\\')) {
strcpy(&line[i-1], &line[i]);
} else {