summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}