From df5390db5e44bd8e3e8df56b30e11884401a94e7 Mon Sep 17 00:00:00 2001 From: Mis012 Date: Fri, 20 Dec 2024 00:02:18 +0100 Subject: [PATCH] main-executable: don't crash on NULL app_icon_path --- src/main-executable/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main-executable/main.c b/src/main-executable/main.c index c01049d4..19a700a4 100644 --- a/src/main-executable/main.c +++ b/src/main-executable/main.c @@ -647,7 +647,7 @@ static void open(GtkApplication *app, GFile **files, gint nfiles, const gchar *h else _SET_INT_FIELD(configuration, "screenLayout", /*SCREENLAYOUT_SIZE_NORMAL*/ 0x02); - if (app_icon_path) { + if (!d->apk_instrumentation_class && app_icon_path) { char *app_icon_path_full = malloc(strlen(app_data_dir) + 1 + strlen(app_icon_path) + 1); // +1 for /, +1 for NULL sprintf(app_icon_path_full, "%s/%s", app_data_dir, app_icon_path);