You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
main-executable: don't crash on NULL app_icon_path
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user