Commit 831e2ed6 authored by Simon Marlow's avatar Simon Marlow
Browse files

Print the prog name in errorBelch() even if prog_argv is not set yet

This means we get the prog name in error messages from the flag parser
parent fb48c6e7
......@@ -187,7 +187,7 @@ rtsErrorMsgFn(const char *s, va_list ap)
/* don't fflush(stdout); WORKAROUND bug in Linux glibc */
if (prog_argv != NULL && prog_name != NULL) {
if (prog_name != NULL) {
fprintf(stderr, "%s: ", prog_name);
vfprintf(stderr, s, ap);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment