mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Oops, null pointer.
This commit is contained in:
parent
a25e030036
commit
b6dea2fce6
@ -231,9 +231,10 @@ void llua_rm_notifies(void)
|
||||
{
|
||||
/* git 'er done */
|
||||
struct _lua_notify_s *head = lua_notifies;
|
||||
struct _lua_notify_s *next = head->next;
|
||||
struct _lua_notify_s *next = 0;
|
||||
if (!lua_notifies) return;
|
||||
inotify_rm_watch(inotify_fd, head->wd);
|
||||
if (head->next) next = head->next;
|
||||
free(head);
|
||||
while (next) {
|
||||
head = next;
|
||||
|
Loading…
Reference in New Issue
Block a user