diff options
Diffstat (limited to 'src/sp_config_utils.c')
| -rw-r--r-- | src/sp_config_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_config_utils.c b/src/sp_config_utils.c index 20d4d79..130f07e 100644 --- a/src/sp_config_utils.c +++ b/src/sp_config_utils.c | |||
| @@ -105,12 +105,12 @@ zend_always_inline sp_list_node *parse_functions_list(char *value) { | |||
| 105 | return NULL; | 105 | return NULL; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | sp_list_node *list = sp_list_new(); | 108 | sp_list_node *list = NULL; |
| 109 | char *tmp = strdup(value); | 109 | char *tmp = strdup(value); |
| 110 | char *function_name; | 110 | char *function_name; |
| 111 | char *next_token = tmp; | 111 | char *next_token = tmp; |
| 112 | while ((function_name = strtok_r(NULL, sep, &next_token))) { | 112 | while ((function_name = strtok_r(NULL, sep, &next_token))) { |
| 113 | sp_list_prepend(list, strdup(function_name)); | 113 | list = sp_list_prepend(list, strdup(function_name)); |
| 114 | } | 114 | } |
| 115 | free(tmp); | 115 | free(tmp); |
| 116 | 116 | ||
