Merge branch 'check_for_null' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
9fbd14f815
1 changed files with 1 additions and 0 deletions
1
glfw/linux_notify.c
vendored
1
glfw/linux_notify.c
vendored
|
|
@ -72,6 +72,7 @@ glfw_dbus_send_user_notification(const char *app_name, const char* icon, const c
|
|||
added_signal_match = session_bus;
|
||||
}
|
||||
NotificationCreatedData *data = malloc(sizeof(NotificationCreatedData));
|
||||
if (!data) return 0;
|
||||
data->next_id = ++notification_id;
|
||||
data->callback = callback; data->data = user_data;
|
||||
if (!data->next_id) data->next_id = ++notification_id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue