Commit b8d15cff authored by claes's avatar claes

Bugg fix in errh_Init, recursive call could occur

parent 8a6375ef
...@@ -145,14 +145,13 @@ errh_Init ( ...@@ -145,14 +145,13 @@ errh_Init (
char *name char *name
) )
{ {
get_name(programName, sizeof(programName) - 1); get_name(programName, sizeof(programName) - 1);
if (name != NULL && name[0] != '\0') if (name != NULL && name[0] != '\0')
set_name(name); set_name(name);
if (!initDone) { if ( !initDone) {
openLog();
initDone = 1; initDone = 1;
openLog();
} }
return 1; return 1;
......
Markdown is supported
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