summaryrefslogtreecommitdiffstats
path: root/edify/expr.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-12 02:21:44 +0200
committerDoug Zongker <dougz@android.com>2009-06-12 18:40:37 +0200
commit8edb00c990e563e6f91b278a212f2edf877cf763 (patch)
treedcd6c0fb2ce82fcb5b43ed47dc74879cfe71b647 /edify/expr.c
parentfix sim build in donut, too (diff)
downloadandroid_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar
android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.gz
android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.bz2
android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.lz
android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.xz
android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.tar.zst
android_bootable_recovery-8edb00c990e563e6f91b278a212f2edf877cf763.zip
Diffstat (limited to '')
-rw-r--r--edify/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/edify/expr.c b/edify/expr.c
index 129fbd96b..5470a2bac 100644
--- a/edify/expr.c
+++ b/edify/expr.c
@@ -283,7 +283,7 @@ static int fn_size = 0;
NamedFunction* fn_table = NULL;
void RegisterFunction(const char* name, Function fn) {
- if (fn_entries <= fn_size) {
+ if (fn_entries >= fn_size) {
fn_size = fn_size*2 + 1;
fn_table = realloc(fn_table, fn_size * sizeof(NamedFunction));
}