]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/mplexpholder.c
[svn-upgrade] Integrating new upstream version, ion3 (20070506)
[ion3.git] / ioncore / mplexpholder.c
index f6d089a2a5cc89fbbbcbec7fb9f1739c90a184ec..623b60ac45a353d452574f35ff52b89b85874deb 100644 (file)
@@ -3,10 +3,7 @@
  *
  * Copyright (c) Tuomo Valkonen 2005-2007. 
  *
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
  */
 
 #include <libtu/objp.h>
@@ -245,7 +242,8 @@ WRegion *recreate_handler(WWindow *par,
 static WMPlexPHolder *get_head(WMPlexPHolder *ph)
 {
     while(1){
-        if(ph->prev->next==NULL)
+        /* ph->prev==NULL should not happen.. */
+        if(ph->prev==NULL || ph->prev->next==NULL)
             break;
         ph=ph->prev;
     }