Re: Cautions with g_list_next()



On Tue, Sep 12, 2006 at 12:15:13AM -0300, Fabricio Rocha wrote:

      element = g_list_first (member->names);
      while (element) {
              ...
              element = g_list_next (member->names);
      }

      ... which led the program to an infinite loop because "element" would 
NOT acquire the 0x0 (NULL) value from "element->next" as expected.

???

How it could acquire anything from element when you use it
on member->names?

Yeti


--
Anonyms eat their boogers.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]