diff --git a/src/library/spotify_webapi.c b/src/library/spotify_webapi.c index c225daf0..0e3c2470 100644 --- a/src/library/spotify_webapi.c +++ b/src/library/spotify_webapi.c @@ -213,7 +213,8 @@ credentials_clear(struct spotify_credentials *credentials) free(credentials->user_country); free(credentials->user); - memset(credentials, 0, sizeof(struct spotify_credentials)); + credentials->token_expires_in = 0; + credentials->token_time_requested = 0; } static void