Skip to content

Commit 8e03004

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/hotkey_manager_linux/linux/hotkey_manager_linux_plugin.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ 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

37-
std::string val = keystring;
37+
std::string val = keystring = "";
3838
auto result = std::find_if(hotkey_id_map.begin(), hotkey_id_map.end(),
3939
[val](const auto& e) { return e.second == val; });
4040

@@ -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)