On 2/8/06, Detlef Riekenberg wine.dev@web.de wrote:
Am Freitag, den 03.02.2006, 19:23 +0100 schrieb Christer Palm:
if((!name) && (name[0])) {
Do you really mean that? "if name is 0, then dereference name"?
No. the code is:
"if name is not NULL, then dereference name"
Consider the case when name is NULL:
!name = TRUE
if (TRUE && name[0])
So the only time you'll dereference name is when name is NULL. It should read:
if (name && name[0])
-- James Hawkins