notify: remove debug assertion

(FD 0 _is_ valid, after all)
This commit is contained in:
Daniel Eklöf 2024-07-30 17:24:48 +02:00
parent ba79bf1602
commit 259a75e957
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -504,10 +504,8 @@ notify_icon_free(struct notification_icon *icon)
{
if (icon->tmp_file_name != NULL) {
unlink(icon->tmp_file_name);
if (icon->tmp_file_fd >= 0) {
xassert(icon->tmp_file_fd > 0); // DEBUG
if (icon->tmp_file_fd >= 0)
close(icon->tmp_file_fd);
}
}
free(icon->id);