summaryrefslogtreecommitdiff
path: root/source4/lib/ejs/var.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ejs/var.c')
-rw-r--r--source4/lib/ejs/var.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ejs/var.c b/source4/lib/ejs/var.c
index 6ef1c4d3a3..63c0b7b98d 100644
--- a/source4/lib/ejs/var.c
+++ b/source4/lib/ejs/var.c
@@ -602,7 +602,8 @@ MprVar *mprGetProperty(MprVar *obj, const char *property, MprVar *value)
for (prop = getObjChain(obj->properties, property); prop;
prop = prop->forw) {
- if (prop->name[0] == property[0] && strcmp(prop->name, property) == 0) {
+ if (prop->name &&
+ prop->name[0] == property[0] && strcmp(prop->name, property) == 0) {
break;
}
}