1
0
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:
Brenden Matthews 2009-05-20 11:53:43 -06:00
parent a25e030036
commit b6dea2fce6

View File

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