[prog] [C] strings bug

Kathryn Hogg kjh at flyballdogs.com
Thu Apr 10 09:28:29 EST 2003


> Ah, I see...
> tmp is undefined if 'dest = strdup()' fails and it wasn't set earlier.


Actually you won't even try the "dest = strdup()" if the preceding test
"if (dest)" fails.

-- 
Kathryn


More information about the Programming mailing list