Mercurial > audlegacy-plugins
diff src/scrobbler/scrobbler.c @ 3150:062f42c3737e
Fix possible crash in scrobbler plugin
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Tue, 12 May 2009 08:30:43 +0200 |
parents | 5a11abf0075c |
children |
line wrap: on
line diff
--- a/src/scrobbler/scrobbler.c Mon May 11 12:25:48 2009 -0500 +++ b/src/scrobbler/scrobbler.c Tue May 12 08:30:43 2009 +0200 @@ -1083,7 +1083,10 @@ sc_challenge_hash = sc_major_error = NULL; sc_username = strdup(uname); sc_password = strdup(pwd); - sc_hs_url = strdup(url); + if (url) + sc_hs_url = strdup(url); + else + sc_hs_url = strdup(LASTFM_HS_URL); read_cache(); pdebug("scrobbler starting up", DEBUG); }