mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[lastfm] Fix incorrect error condition test
This commit is contained in:
parent
47779e59e7
commit
fada4c0ee7
@ -230,7 +230,7 @@ request_post(const char *url, struct keyval *kv, char **errmsg)
|
||||
memset(&ctx, 0, sizeof(struct http_client_ctx));
|
||||
|
||||
ctx.output_body = http_form_urlencode(kv);
|
||||
if (ret < 0)
|
||||
if (!ctx.output_body)
|
||||
{
|
||||
DPRINTF(E_LOG, L_LASTFM, "Aborting request, http_form_urlencode failed\n");
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user