mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 14:13:18 -05:00
Merge branch 'master' into fixosx
This commit is contained in:
commit
836320518b
@ -33,7 +33,6 @@
|
||||
#include <stdint.h>
|
||||
#include <limits.h>
|
||||
#include <sys/param.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <unistr.h>
|
||||
#include <uniconv.h>
|
||||
|
@ -2044,7 +2044,7 @@ void
|
||||
spotify_oauth_callback(struct evbuffer *evbuf, struct evkeyvalq *param, const char *redirect_uri)
|
||||
{
|
||||
const char *code;
|
||||
const char *err = "";
|
||||
const char *err;
|
||||
int ret;
|
||||
|
||||
code = evhttp_find_header(param, "code");
|
||||
|
@ -294,6 +294,7 @@ spotifywebapi_token_get(const char *code, const char *redirect_uri, const char *
|
||||
struct keyval kv;
|
||||
int ret;
|
||||
|
||||
*err = "";
|
||||
memset(&kv, 0, sizeof(struct keyval));
|
||||
ret = ( (keyval_add(&kv, "grant_type", "authorization_code") == 0) &&
|
||||
(keyval_add(&kv, "code", code) == 0) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user