X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fmplexpholder.c;h=623b60ac45a353d452574f35ff52b89b85874deb;hb=ae4260bb64817c11f9a7140324cd3e3ba113e297;hp=f6d089a2a5cc89fbbbcbec7fb9f1739c90a184ec;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;p=ion3.git diff --git a/ioncore/mplexpholder.c b/ioncore/mplexpholder.c index f6d089a..623b60a 100644 --- a/ioncore/mplexpholder.c +++ b/ioncore/mplexpholder.c @@ -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 @@ -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; }