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:
parent
7ddf983a85
commit
45ddcc9fed
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue