*/
void notef(const char *fmt, ...)
{
- if(global->tracetype) {
+ if(global && global->tracetype) {
va_list ap;
va_start(ap, fmt);
voutf(NOTE_PREFIX, fmt, ap);
*/
void warnf(const char *fmt, ...)
{
- if(!global->silent) {
+ if(!global || !global->silent) {
va_list ap;
va_start(ap, fmt);
voutf(WARN_PREFIX, fmt, ap);
*/
void errorf(const char *fmt, ...)
{
- if(!global->silent || global->showerror) {
+ if(!global || !global->silent || global->showerror) {
va_list ap;
va_start(ap, fmt);
voutf(ERROR_PREFIX, fmt, ap);