diff --git a/src/webui/webui_api.c b/src/webui/webui_api.c index 45b93dea..db5a8f7b 100644 --- a/src/webui/webui_api.c +++ b/src/webui/webui_api.c @@ -77,6 +77,8 @@ webui_api_handler } /* Output response */ + if (!r && !resp) + resp = htsmsg_create_map(); if (resp) { htsmsg_json_serialize(resp, &hc->hc_reply, 0); http_output_content(hc, "text/x-json; charset=UTF-8");