From d023bf0f5dedb67caf9229e3ddcbb5a9fea420ce Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sun, 10 Jun 2012 17:15:47 +0200 Subject: Fix checks on buflib allocated handles (0 is not a valid handle value) Change-Id: I8fdc5a59a5062f40a431cd49971390e21631b8ec --- apps/scrobbler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/scrobbler.c') 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) return -1; scrobbler_cache = core_alloc("scrobbler", SCROBBLER_MAX_CACHE*SCROBBLER_CACHE_LEN); - if (scrobbler_cache < 0) + if (scrobbler_cache <= 0) { logf("SCROOBLER: OOM"); return -1; -- cgit v1.2.3