summaryrefslogtreecommitdiff
path: root/plugins/lastfm
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-28 22:14:16 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-28 22:14:16 +0100
commit928439ce2bb2b856a00e1fe25cb7805ebc962c5e (patch)
tree2f9151c2a41b07ddc6ef2dcbd9ef3688445563e0 /plugins/lastfm
parent3d030ccade41504430b383a286bf9916233d2b6d (diff)
parent8fa99e77209becf413cac6b75fd9c1c7b0c9bdb2 (diff)
Merge branch 'master' into devel
Conflicts: plugins/wavpack/wavpack.c
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 d441a8c2..de86357e 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];