summaryrefslogtreecommitdiffstats
path: root/updater/updater.c
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-10-01 17:21:12 +0200
committerDees Troy <dees_troy@teamw.in>2013-10-01 17:21:12 +0200
commitd29b3361f02250a08481d019628d11e9a4522da8 (patch)
tree81e575951dc23363707b132b999246de20ad9aff /updater/updater.c
parent2.6.3.0 (diff)
downloadandroid_bootable_recovery-d29b3361f02250a08481d019628d11e9a4522da8.tar
android_bootable_recovery-d29b3361f02250a08481d019628d11e9a4522da8.tar.gz
android_bootable_recovery-d29b3361f02250a08481d019628d11e9a4522da8.tar.bz2
android_bootable_recovery-d29b3361f02250a08481d019628d11e9a4522da8.tar.lz
android_bootable_recovery-d29b3361f02250a08481d019628d11e9a4522da8.tar.xz
android_bootable_recovery-d29b3361f02250a08481d019628d11e9a4522da8.tar.zst
android_bootable_recovery-d29b3361f02250a08481d019628d11e9a4522da8.zip
Diffstat (limited to '')
-rw-r--r--updater/updater.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/updater.c b/updater/updater.c
index 15d3d412f..7aa95e761 100644
--- a/updater/updater.c
+++ b/updater/updater.c
@@ -91,7 +91,7 @@ int main(int argc, char** argv) {
script[script_entry->uncompLen] = '\0';
const ZipEntry* file_contexts_entry = mzFindZipEntry(&za, SELINUX_CONTEXTS_ZIP);
- if (script_entry != NULL) {
+ if (file_contexts_entry != NULL) {
int file_contexts_fd = creat(SELINUX_CONTEXTS_TMP, 0644);
if (file_contexts_fd < 0) {
fprintf(stderr, "Could not extract %s to '%s'\n", SELINUX_CONTEXTS_ZIP, SELINUX_CONTEXTS_TMP);