summaryrefslogtreecommitdiff
path: root/apps/scrobbler.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2012-06-10 17:15:47 +0200
committerBertrik Sikken <bertrik@sikken.nl>2012-06-10 17:15:47 +0200
commitd023bf0f5dedb67caf9229e3ddcbb5a9fea420ce (patch)
tree3562a23f7eb6009e161cbc8aae943de33d168b91 /apps/scrobbler.c
parent900cf6d52bd806bd54ad2118e245cd3465ea6815 (diff)
downloadrockbox-d023bf0f5dedb67caf9229e3ddcbb5a9fea420ce.tar.gz
rockbox-d023bf0f5dedb67caf9229e3ddcbb5a9fea420ce.zip
Fix checks on buflib allocated handles (0 is not a valid handle value)
Change-Id: I8fdc5a59a5062f40a431cd49971390e21631b8ec
Diffstat (limited to 'apps/scrobbler.c')
-rw-r--r--apps/scrobbler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/scrobbler.c b/apps/scrobbler.c
index 06c957cd6c..78414f3d88 100644
--- a/apps/scrobbler.c
+++ b/apps/scrobbler.c
@@ -255,7 +255,7 @@ int scrobbler_init(void)
255 return -1; 255 return -1;
256 256
257 scrobbler_cache = core_alloc("scrobbler", SCROBBLER_MAX_CACHE*SCROBBLER_CACHE_LEN); 257 scrobbler_cache = core_alloc("scrobbler", SCROBBLER_MAX_CACHE*SCROBBLER_CACHE_LEN);
258 if (scrobbler_cache < 0) 258 if (scrobbler_cache <= 0)
259 { 259 {
260 logf("SCROOBLER: OOM"); 260 logf("SCROOBLER: OOM");
261 return -1; 261 return -1;