misc: pass NULL instead of 0 for pointer in variadic functions