summaryrefslogtreecommitdiff
path: root/plugins/lastfm
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/lastfm')
-rw-r--r--plugins/lastfm/lastfm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c
index 3a8de2c0..d188c5e6 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -23,8 +23,8 @@
#include <curl/curl.h>
#include "../../deadbeef.h"
-//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
-#define trace(fmt,...)
+#define trace(...) { fprintf(stderr, __VA_ARGS__); }
+//#define trace(fmt,...)
#define LFM_TESTMODE 0
#define LFM_IGNORE_RULES 0
@@ -180,6 +180,9 @@ auth (void) {
if (lfm_sess[0]) {
return 0;
}
+ if (!lfm_user[0] || !lfm_pass[0]) {
+ return -1;
+ }
char req[4096];
time_t timestamp = time(NULL);
uint8_t sig[16];