Merge branch 'check_for_null' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-02-24 19:45:15 +05:30
commit 9fbd14f815
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

1
glfw/linux_notify.c vendored
View file

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