Don't double print messages.

This commit is contained in:
Bill Currie 2018-10-12 20:46:45 +09:00
parent 668896aa82
commit f56d25cda6

View file

@ -113,7 +113,6 @@ _warning (expr_t *e, const char *fmt, va_list args)
} else {
fprintf (stderr, "%s\n", message->str);
}
fprintf (stderr, "%s\n", message->str);
dstring_delete (message);
}
@ -183,7 +182,6 @@ notice (expr_t *e, const char *fmt, ...)
} else {
fprintf (stderr, "%s\n", message->str);
}
fprintf (stderr, "%s\n", message->str);
dstring_delete (message);
}
va_end (args);
@ -240,7 +238,6 @@ error (expr_t *e, const char *fmt, ...)
} else {
fprintf (stderr, "%s\n", message->str);
}
fprintf (stderr, "%s\n", message->str);
dstring_delete (message);
}
va_end (args);