[libvirt] [PATCH] Avoid passing NULL to printf %s specifier

John Levon john.levon at sun.com
Thu Jan 15 12:48:22 UTC 2009


On Thu, Jan 15, 2009 at 12:17:21PM +0100, Jim Meyering wrote:

> #define NULLSTR(s) \
>   ((void)verify_true(sizeof *(s) == sizeof (char)), \
>    (s) ? (s) : "(null)")

Sure, I can try something like this.

regards
john




More information about the libvir-list mailing list