<code> assert(buffer && format); </code> please.
Naturally, this (like the deleted code that "handled" the alternative) should happen *before* the va_start() !