Merge branch 'master' into fixosx

This commit is contained in:
Scott Shambarger 2017-01-21 13:04:38 -05:00
commit 836320518b
3 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,6 @@
#include <stdint.h>
#include <limits.h>
#include <sys/param.h>
#include <assert.h>
#include <unistr.h>
#include <uniconv.h>

View File

@ -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");

View File

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