| 155 | } |
| 156 | |
| 157 | static void update_string(struct mg_str json, const char *path, char **value) { |
| 158 | char *jval; |
| 159 | if ((jval = mg_json_get_str(json, path)) != NULL) { |
| 160 | mg_free(*value); |
| 161 | *value = strdup(jval); |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | static void config_apply(struct mg_str s) { |
| 166 | MG_INFO(("Applying config: %.*s", (int) s.len, s.buf)); |
no test coverage detected