From 9072533fa2aeaa8bc21982c7702accd99d03eec3 Mon Sep 17 00:00:00 2001 From: gullradriel Date: Mon, 9 Feb 2026 21:03:51 +0100 Subject: [PATCH] always set a preset name to something --- protopirate_history.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protopirate_history.c b/protopirate_history.c index 2abf0a5..aebf3cc 100644 --- a/protopirate_history.c +++ b/protopirate_history.c @@ -134,7 +134,11 @@ bool protopirate_history_add_to_history( item->preset = malloc(sizeof(SubGhzRadioPreset)); item->preset->frequency = preset->frequency; item->preset->name = furi_string_alloc(); - furi_string_set(item->preset->name, preset->name); + if(preset->name) { + furi_string_set(item->preset->name, preset->name); + } else { + furi_string_set(item->preset->name, "UNKNOWN"); + } item->preset->data = preset->data; item->preset->data_size = preset->data_size;