Skip to content

Commit 1b31e3c

Browse files
committed
fix: build failure with Clang 21
1 parent ddbb7bf commit 1b31e3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/hotkey_manager_linux/linux/hotkey_manager_linux_plugin.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ G_DEFINE_TYPE(HotkeyManagerLinuxPlugin,
3232
g_object_get_type())
3333

3434
void handle_key_down(const char* keystring, void* user_data) {
35-
const char* identifier;
35+
const char* identifier = "";
3636

3737
std::string val = keystring;
3838
auto result = std::find_if(hotkey_id_map.begin(), hotkey_id_map.end(),
@@ -103,7 +103,7 @@ static FlMethodResponse* hkm_unregister(_HotkeyManagerLinuxPlugin* self,
103103
FlValue* args) {
104104
const char* identifier =
105105
fl_value_get_string(fl_value_lookup_string(args, "identifier"));
106-
const char* keystring;
106+
const char* keystring = "";
107107

108108
std::string val = identifier;
109109
auto result = std::find_if(hotkey_id_map.begin(), hotkey_id_map.end(),

0 commit comments

Comments
 (0)