Diff between 11c3ef8a932dbb2da49299b6d31a6c1d73ce7325 and 63b0fede0f8140be8b4534a6d7d0ae06dfe4da23
Changed Files
| File | Additions | Deletions | Status |
| android/cutils/properties.h | +1 | -1 | modified |
Full Patch
diff --git a/android/cutils/properties.h b/android/cutils/properties.h
index a9f7554..44a712c 100644
--- a/android/cutils/properties.h
+++ b/android/cutils/properties.h
@@ -43,7 +43,7 @@ static inline int property_get(const char *key, char *value,
if (!env)
env = default_value;
- if (!value)
+ if (!value || !env)
return 0;
strncpy(value, env, PROPERTY_VALUE_MAX);