# HG changeset patch # User Nathan Walp # Date 1135172238 0 # Node ID e94c33909aa670c56d6d2f684e9d6f34ab3b4c83 # Parent 1c122dbc8e9e2012d8220f6c61f3403735a88cf9 [gaim-migrate @ 14929] i don't know how this is happening, but apparently it is, so now we'll protect against it committer: Tailor Script diff -r 1c122dbc8e9e -r e94c33909aa6 src/prefs.c --- a/src/prefs.c Wed Dec 21 12:22:04 2005 +0000 +++ b/src/prefs.c Wed Dec 21 13:37:18 2005 +0000 @@ -620,9 +620,10 @@ pref->parent->first_child = pref->sibling; } else { struct gaim_pref *sib = pref->parent->first_child; - while(sib->sibling != pref) + while(sib && sib->sibling != pref) sib = sib->sibling; - sib->sibling = pref->sibling; + if(sib) + sib->sibling = pref->sibling; } name = pref_full_name(pref);