summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-09-10 15:16:15 +0000
committerThomas Martitz <kugel@rockbox.org>2011-09-10 15:16:15 +0000
commit585eb12348a23bfe9e181fa01ba55afa6109c735 (patch)
tree0fc79586c72d092862637674eb09f7c0c7a39013
parent4096cb1830f4957da74e413d2488105e551fb507 (diff)
downloadrockbox-585eb12348a23bfe9e181fa01ba55afa6109c735.tar.gz
rockbox-585eb12348a23bfe9e181fa01ba55afa6109c735.zip
Buflib: Correct return value of handle_table_shrink() to match comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30495 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/buflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c
index c144088c27..3b4f522dcf 100644
--- a/firmware/buflib.c
+++ b/firmware/buflib.c
@@ -179,7 +179,7 @@ handle_table_shrink(struct buflib_context *ctx)
for (handle = ctx->last_handle; !(handle->alloc); handle++);
if (handle > ctx->first_free_handle)
ctx->first_free_handle = handle - 1;
- rv = handle == ctx->last_handle;
+ rv = handle != ctx->last_handle;
ctx->last_handle = handle;
return rv;
}