Protect against uinitialized var if query is empty
This commit is contained in:
parent
ca3fada215
commit
dafa26a48a
|
@ -1417,6 +1417,8 @@ dacp_reply_playqueueedit_add(struct evhttp_request *req, struct evbuffer *evbuf,
|
||||||
int ret;
|
int ret;
|
||||||
int quirkyquery;
|
int quirkyquery;
|
||||||
|
|
||||||
|
mode = 1;
|
||||||
|
|
||||||
param = evhttp_find_header(query, "mode");
|
param = evhttp_find_header(query, "mode");
|
||||||
if (param)
|
if (param)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue