From 8f24958d2a00a746001157f44419d3f3c79426b9 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 20 Jan 2021 21:44:15 +0000 Subject: [PATCH] flatpak-dir: Set subpaths when calling Deploy() if not set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds `NULL` protection to the `subpaths` argument to `flatpak_dir_system_helper_call_deploy()`, just like already exists for other arguments. It’s a second layer of defence against bugs like fixed in the previous commit. Signed-off-by: Philip Withnall --- common/flatpak-dir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 252d8ac7..a2a18dc3 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -2078,6 +2078,8 @@ flatpak_dir_system_helper_call_deploy (FlatpakDir *self, { const char *empty[] = { NULL }; + if (arg_subpaths == NULL) + arg_subpaths = empty; if (arg_previous_ids == NULL) arg_previous_ids = empty;