aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/label_android_property.c
diff options
context:
space:
mode:
Diffstat (limited to 'libselinux/src/label_android_property.c')
-rw-r--r--libselinux/src/label_android_property.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libselinux/src/label_android_property.c b/libselinux/src/label_android_property.c
index 79bf9238..e11ccf89 100644
--- a/libselinux/src/label_android_property.c
+++ b/libselinux/src/label_android_property.c
@@ -153,6 +153,9 @@ static int init(struct selabel_handle *rec, struct selinux_opt *opts,
break;
}
+ if (!path)
+ return -1;
+
/* Open the specification file. */
if ((fp = fopen(path, "r")) == NULL)
return -1;