From 3f6c7405ed01672255988060d243c9ac54d12bd6 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 3 Sep 2023 20:59:45 +0200 Subject: [PATCH] [spotify] Don't zero pthread lock when resetting credentials --- src/library/spotify_webapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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