*
* 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>
/*}}}*/
-/*{{{ Move, attach, layer */
+/*{{{ Move, attach */
typedef struct{
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;
}