mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
Minor change: remove unused include, init variable.
This commit is contained in:
parent
b128271656
commit
a837389ac5
@ -33,7 +33,6 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#include <unistr.h>
|
#include <unistr.h>
|
||||||
#include <uniconv.h>
|
#include <uniconv.h>
|
||||||
|
@ -2044,7 +2044,7 @@ void
|
|||||||
spotify_oauth_callback(struct evbuffer *evbuf, struct evkeyvalq *param, const char *redirect_uri)
|
spotify_oauth_callback(struct evbuffer *evbuf, struct evkeyvalq *param, const char *redirect_uri)
|
||||||
{
|
{
|
||||||
const char *code;
|
const char *code;
|
||||||
const char *err = "";
|
const char *err;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
code = evhttp_find_header(param, "code");
|
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;
|
struct keyval kv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
*err = "";
|
||||||
memset(&kv, 0, sizeof(struct keyval));
|
memset(&kv, 0, sizeof(struct keyval));
|
||||||
ret = ( (keyval_add(&kv, "grant_type", "authorization_code") == 0) &&
|
ret = ( (keyval_add(&kv, "grant_type", "authorization_code") == 0) &&
|
||||||
(keyval_add(&kv, "code", code) == 0) &&
|
(keyval_add(&kv, "code", code) == 0) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user