This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push: new d1ebdf6 fix: nxstyle: fix a bug after "'\'" d1ebdf6 is described below commit d1ebdf6e6511bfff9261ba66235cdede4d57699e Author: liucheng5 <liuche...@xiaomi.com> AuthorDate: Tue Oct 26 20:35:29 2021 +0800 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 <liuche...@xiaomi.com> --- tools/nxstyle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 5f2afca..ae0c288 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -2270,7 +2270,7 @@ int main(int argc, char **argv, char **envp) endndx++); } - n = endndx + 1; + n = endndx; } } break;