[lastfm] Fix incorrect error condition test

This commit is contained in:
ejurgensen 2020-08-10 22:08:35 +02:00
parent 47779e59e7
commit fada4c0ee7
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ request_post(const char *url, struct keyval *kv, char **errmsg)
memset(&ctx, 0, sizeof(struct http_client_ctx)); memset(&ctx, 0, sizeof(struct http_client_ctx));
ctx.output_body = http_form_urlencode(kv); 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"); DPRINTF(E_LOG, L_LASTFM, "Aborting request, http_form_urlencode failed\n");
return -1; return -1;