]> Nishi Git Mirror - dataworks.git/commitdiff
i love parser
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Thu, 23 May 2024 10:37:30 +0000 (10:37 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Thu, 23 May 2024 10:37:30 +0000 (10:37 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@95 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Library/parser.c

index 8a4151f14d9a10b2c0feeffb535005b52000beb0..d97a7683401b5cc3ef42685c5bb8aaab73eb15b8 100644 (file)
@@ -118,7 +118,7 @@ struct __dw_token* __dw_parser_parse(const char* str) {
                                                comma = __dw_strcat(tmp, cbuf);
                                                free(tmp);
                                        } else if(c == 0 || c == ',') {
-                                               if(strlen(comma) > 0){
+                                               if(strlen(comma) > 0) {
                                                        j = 0;
                                                        if(token->token != NULL) {
                                                                for(j = 0; token->token[j] != NULL; j++)