summaryrefslogtreecommitdiffstats
path: root/edify/expr.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-15 05:49:32 +0200
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-15 05:49:32 +0200
commitcf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3 (patch)
tree5147d4b4add3e2dc17f5404254e8ef3be80fd23c /edify/expr.c
parentam 9dbc027b: fix sim build in donut, too (diff)
parentedify extensions for OTA package installation, part 2 (diff)
downloadandroid_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.gz
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.bz2
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.lz
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.xz
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.tar.zst
android_bootable_recovery-cf2b2a2e8fc0361b9db5826c2e5c92d9cb5920d3.zip
Diffstat (limited to 'edify/expr.c')
-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));
}