summaryrefslogtreecommitdiffstats
path: root/edify/expr.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-02-25 00:03:47 +0100
committerDoug Zongker <dougz@android.com>2010-02-25 00:05:07 +0100
commit5b695f393e6777aad4618d55f2b507e57bb4dc4b (patch)
treea8e3ef7c71386ac617b48d9f18ca19edfb7e33a5 /edify/expr.c
parentrefactor applypatch and friends (diff)
downloadandroid_bootable_recovery-5b695f393e6777aad4618d55f2b507e57bb4dc4b.tar
android_bootable_recovery-5b695f393e6777aad4618d55f2b507e57bb4dc4b.tar.gz
android_bootable_recovery-5b695f393e6777aad4618d55f2b507e57bb4dc4b.tar.bz2
android_bootable_recovery-5b695f393e6777aad4618d55f2b507e57bb4dc4b.tar.lz
android_bootable_recovery-5b695f393e6777aad4618d55f2b507e57bb4dc4b.tar.xz
android_bootable_recovery-5b695f393e6777aad4618d55f2b507e57bb4dc4b.tar.zst
android_bootable_recovery-5b695f393e6777aad4618d55f2b507e57bb4dc4b.zip
Diffstat (limited to 'edify/expr.c')
-rw-r--r--edify/expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/edify/expr.c b/edify/expr.c
index 7a5b2fbf8..360007586 100644
--- a/edify/expr.c
+++ b/edify/expr.c
@@ -50,6 +50,7 @@ Value* EvaluateValue(State* state, Expr* expr) {
}
Value* StringValue(char* str) {
+ if (str == NULL) return NULL;
Value* v = malloc(sizeof(Value));
v->type = VAL_STRING;
v->size = strlen(str);