On Fri, 8 Jun 2001, Joaquin Cuenca Abela wrote:

>> You're right here. But as as long as you only READ
>> it should make no
>> difference (IMHO)...
>
>if it's right, it makes a big difference.  If you try:
>
>if (!image->Data || !image)
>
>the program will segfault trying to access the member
>Data of a null pointer.
>
>Though I think that the order evaluation IS specified
>in the standard.

I don't know wether the orignial code solves the original problem
or not, but left to right associativity for || is guaranteed by
ISO C99 (section 6.5.14).




----------------------------------------------------------------------
Mike A. Harris                  Shipping/mailing address:
OS Systems Engineer             190 Pittsburgh Ave., Sault Ste. Marie,
Red Hat Inc.                    Ontario, Canada, P6C 5B3
http://www.redhat.com           Phone: (705)949-2136
----------------------------------------------------------------------
Latest XFree86 test RPMS:      ftp://people.redhat.com/mharris/testing


_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to