Coverity-found bug: don't use temp->next *before* checking it for NULL. Also
return rather than use it again.
T
Thomas Wouters committed
47f003d326f4e30a17cf9d91e384e98e7367533a
Parent: 622927b
return rather than use it again.