I have submitted patches to various projects to change references to string 
variables which could be NULL from

s to

s ? s : "NULL"

I have looked in the code and found
http://cvs.opensolaris.org/source/xref/on/usr/src/common/util/string.c#172

which I think is what Linux is doing.

Most of the code where I have encountered the4 problem are logging or debug 
statements. You will have difficulty persuading people used to that behavior 
that it is a bug and not a feature.


Padraig
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to