[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]