From 7ea0a19a4f46874d6a19fc81043f52be77ce18c4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 5 Jun 2016 19:29:55 +0200 Subject: [PATCH] Prevent crash --- tasks/task_content.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/task_content.c b/tasks/task_content.c index 3c2cdbad14..66d8b5366c 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -1346,7 +1346,7 @@ static bool init_content_file_set_attribs( attr.i = 0; - if (*global->subsystem) + if (*global->subsystem && special) { unsigned i; @@ -1422,7 +1422,7 @@ static bool content_file_init(struct string_list *temporary_content) if (!content) goto error; - if (special && !init_content_file_set_attribs(temporary_content, + if (!init_content_file_set_attribs(temporary_content, content, system, special)) goto error;