mirror of
https://github.com/apache/nuttx.git
synced 2026-08-31 22:23:03 +00:00
fix: nxstyle: fix a bug after "'\'"
When nxstyle.c detects a "\'", it seeks the other "\'", records the index as "endndx", then skip the "'x'". But it makes the index "n" as "endndx+1".Then it comes to the "n++" in "for()". So the character after "'x'" will be skipped, causing some errors.
For example, "{"devid", no_argument, NULL, 'i'},", the "}" will be skipped, causing a lot of error reports.
Now it's fixed.
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
This commit is contained in:
parent
35e93644cf
commit
d1ebdf6e65
1 changed files with 1 additions and 1 deletions
|
|
@ -2270,7 +2270,7 @@ int main(int argc, char **argv, char **envp)
|
|||
endndx++);
|
||||
}
|
||||
|
||||
n = endndx + 1;
|
||||
n = endndx;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue