summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-10-01 21:45:43 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-10-01 21:45:43 (GMT)
commitf0b5dbbe8b6379c40620af13719a0fc2ee565654 (patch)
tree4b728e92f31a37f77cf97762d0cee4610791994f
parentfe7b2b27ef3992aaf1d9bc3e708a4fdfda9cba40 (diff)
fixed memory error at client handling
-rw-r--r--rhdropbox.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}