Problem with gnomecc




Gnomecc is crashing for me on startup because
tree.c:generate_tree_helper() is trying to add a node between a leaf
node.

Question:
	Why does generate_tree_helper() check the that type ==
'Directory' for setting 'is_leaf', but checks i->children for deciding
when to recurse?

Surely it would be better to check one or the other all the time (In
theory they should match, yes? and so only relying on one is good
defensive programming).

Michael.



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