diff options
| author | jvoisin | 2017-10-27 16:06:39 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-27 16:06:39 +0200 |
| commit | 70498a7cce831049b47051813b850665c5547927 (patch) | |
| tree | ea1030022662e3a5d6d710660790e909516155fc /src/sp_config_utils.c | |
| parent | fa40064f0851b988478b283be4663ade1cf7f7e0 (diff) | |
Improve a bit the coverage wrt. broken configurations
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 62fb7c1..12df098 100644 --- a/src/sp_config_utils.c +++ b/src/sp_config_utils.c | |||
| @@ -60,7 +60,7 @@ static char *get_string(size_t *consumed, char *restrict line, | |||
| 60 | size_t j = 0; | 60 | size_t j = 0; |
| 61 | 61 | ||
| 62 | char *ret = NULL; | 62 | char *ret = NULL; |
| 63 | if (NULL == line) { | 63 | if (NULL == line || '\0' == *line) { |
| 64 | goto err; | 64 | goto err; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| @@ -189,4 +189,4 @@ zend_always_inline sp_node_t *parse_functions_list(char *value) { | |||
| 189 | free(tmp); | 189 | free(tmp); |
| 190 | 190 | ||
| 191 | return list; | 191 | return list; |
| 192 | } \ No newline at end of file | 192 | } |
