From bdd5d5342b3a6ddebe0ce55d7de96b1e753bca38 Mon Sep 17 00:00:00 2001 From: kojima Date: Sat, 8 Apr 2000 23:13:25 +0000 Subject: [PATCH] fixed crash on restart --- src/shutdown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shutdown.c b/src/shutdown.c index 6c1c6b89..c165f99b 100644 --- a/src/shutdown.c +++ b/src/shutdown.c @@ -174,7 +174,7 @@ RestoreDesktop(WScreen *scr) /* reparent windows back to the root window, keeping the stacking order */ for (core = WMBagFirst(scr->stacking_list, &iter); - iter != NULL; + iter != NULL && core != NULL; core = WMBagNext(scr->stacking_list, &iter)) { WCoreWindow *next; WWindow *wwin; @@ -182,7 +182,7 @@ RestoreDesktop(WScreen *scr) /* go to the end of the list */ while (core->stacking->under) core = core->stacking->under; - + while (core) { next = core->stacking->above;