From f0b5dbbe8b6379c40620af13719a0fc2ee565654 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 1 Oct 2010 21:45:43 +0000 Subject: fixed memory error at client handling --- rhdropbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rhdropbox.c b/rhdropbox.c index 5dc889b..3503fd2 100644 --- a/rhdropbox.c +++ b/rhdropbox.c @@ -426,7 +426,8 @@ int main_loop(int cmd_listen_fd, int inotify_fd, options_t* opt) break; } - lst = lst->next; + if(lst) + lst = lst->next; } } -- cgit v1.2.3