OK. So in the case found=surf=NULL and we disable the test that exits with an error, should the part of the function after the test fail or not ?
Well, we loop on 'surf' (which will be NULL at the end of the loop) and test 'found' (that won't be NULL if a matching surface was found). So no, I do not see any problem here.
===== Sylvain Petreolle spetreolle@users.sourceforge.net Fight against Spam ! http://www.euro.cauce.org/en/index.html ICQ #170597259
"Don't think you are. Know you are." Morpheus in Matrix, chapter 15.
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com