summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguillaume <guillaume>2007-01-29 00:58:51 +0000
committerguillaume <guillaume>2007-01-29 00:58:51 +0000
commitb34d6f3b5b9bb1431d2474764da81f839dc5fff2 (patch)
tree85a780589153264d65e3d72e93c8c19c01fd4b68
parent1e61686778d45f4ab40e31bd7f06faedb15bf1ce (diff)
downloadberyl-desktop-manager-b34d6f3b5b9bb1431d2474764da81f839dc5fff2.tar.gz
beryl-desktop-manager-b34d6f3b5b9bb1431d2474764da81f839dc5fff2.tar.bz2
bdm: fix segfault.. more to come ><
-rw-r--r--src/bdm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bdm.c b/src/bdm.c
index ee9e56a..3a4ff98 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -234,7 +234,8 @@ static int loadWidget (char * path)
widget->texts = widget->getTexts ();
widget->prev = (BDMWidget *) g_slist_last (Widgets);
- widget->prev->next = widget;
+ if (widget->prev)
+ widget->prev->next = widget;
widget->next = NULL;
widget->initWidget (widget);