Well I suppose it depends if your loop is circular or not. Does your last node point to your first node? If so, you'll be fine, you'll just end up looping through the whole list. You'll still have the problem with the passed list being NULL though.
Quzah