Skip to content
Snippets Groups Projects
Commit 725bc317 authored by rswindell's avatar rswindell
Browse files

Use puts() rather tha uifc.msg() if uifc hasn't been initialized.

When importing an area list using the -import=<filename> option, if any
error occurred, scfg would segfault while trying to display the error
message because it was trying to use uifc.msg() which was a NULL pointer.
parent 08ee3d4b
No related branches found
No related tags found
No related merge requests found
......@@ -2188,7 +2188,10 @@ int lprintf(int level, char *fmt, ...)
sbuf[sizeof(sbuf)-1]=0;
va_end(argptr);
strip_ctrl(sbuf,sbuf);
uifc.msg(sbuf);
if(uifc.msg == NULL)
puts(sbuf);
else
uifc.msg(sbuf);
return(0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment