Protect against uinitialized var if query is empty

This commit is contained in:
ejurgensen 2014-09-26 23:13:17 +02:00
parent ca3fada215
commit dafa26a48a
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{ {