From 70d05191780b07564ed44ecc1174119f2056f876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Fri, 12 Nov 2021 18:45:51 +0300 Subject: [PATCH] Subghz: fix crash on arg free (#815) --- applications/subghz/subghz.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/subghz/subghz.c b/applications/subghz/subghz.c index 22babec3..5ae24b7b 100644 --- a/applications/subghz/subghz.c +++ b/applications/subghz/subghz.c @@ -288,6 +288,8 @@ int32_t subghz_app(void* p) { // Check argument and run corresponding scene if(p && subghz_key_load(subghz, p)) { string_t filename; + string_init(filename); + path_extract_filename_no_ext(p, filename); strlcpy( subghz->file_name, string_get_cstr(filename), strlen(string_get_cstr(filename)) + 1);