diff options
Diffstat (limited to 'src/sp_var_parser.c')
| -rw-r--r-- | src/sp_var_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_var_parser.c b/src/sp_var_parser.c index e7ff766..81d696f 100644 --- a/src/sp_var_parser.c +++ b/src/sp_var_parser.c | |||
| @@ -7,7 +7,7 @@ static sp_list_node *parse_str_tokens(const char *str, | |||
| 7 | 7 | ||
| 8 | while ((cur_str = strchr(cur_str, token.text_repr[0]))) { | 8 | while ((cur_str = strchr(cur_str, token.text_repr[0]))) { |
| 9 | if (0 == strncmp(cur_str, token.text_repr, strlen(token.text_repr))) { | 9 | if (0 == strncmp(cur_str, token.text_repr, strlen(token.text_repr))) { |
| 10 | sp_conf_token *token_elm = pecalloc(sizeof(sp_conf_token), 1, 1); | 10 | sp_conf_token *token_elm = pecalloc(1, sizeof(sp_conf_token), 1); |
| 11 | token_elm->pos = cur_str - str; | 11 | token_elm->pos = cur_str - str; |
| 12 | token_elm->text_repr = token.text_repr; | 12 | token_elm->text_repr = token.text_repr; |
| 13 | token_elm->type = token.type; | 13 | token_elm->type = token.type; |
| @@ -51,7 +51,7 @@ static int create_var(sp_tree *tree, const char *restrict value, | |||
| 51 | if (tree->next == NULL && tree->type == UNDEFINED) { | 51 | if (tree->next == NULL && tree->type == UNDEFINED) { |
| 52 | var_node = tree; | 52 | var_node = tree; |
| 53 | } else { | 53 | } else { |
| 54 | var_node = pecalloc(sizeof(sp_tree), 1, 1); | 54 | var_node = pecalloc(1, sizeof(sp_tree), 1); |
| 55 | free_node_on_error = true; | 55 | free_node_on_error = true; |
| 56 | } | 56 | } |
| 57 | 57 | ||
