x is past in as something like ("print %s", buf) that can not be compared
to NULL.

At least if you try the compiler gives this warning

warning: left-hand operand of comma expression has no effect [-Wunused-value]

In 13.12 this is treated as an error
Bring back original functionality using DEBUG