> Brian,
>
> I thought that in the C specs you can't be guarenteed the order of
> evaluation in an if brace. Surely a safer bet is
>
> if(!image){
> if(!image->Data){
> ...
> }
> }
Order of operations is actually guaranteed in this case. See
http://www.faqs.org/faqs/C-faq/faq/ (item 3.5).
You will never chase a NULL pointer if you code this:
if( p && p->foo ) {}
These expressions are quite idiomatic and show up everywhere e.g. in the
Linux kernel...
Regards,
Dan
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dri-devel