minor fixes

This commit is contained in:
Sergey Dorofeev 2012-03-10 20:50:35 +04:00
parent f131ba864f
commit 700c217729
2 changed files with 2 additions and 2 deletions

View File

@ -480,10 +480,10 @@ exit:
/* Shutdown logging services */
if( log_isopened() ) log_close();
DEB((D_FREE, "good exit"));
#ifdef DEBUG
if( debug_isopened() ) debug_close();
#endif
DEB((D_FREE, "good exit"));
exit(rc);
}

View File

@ -41,7 +41,7 @@ int answ_system(e_session type, char *connstr, int inetd)
state.inet = TRUE;
}
else
state.linename = isatty(0) ? port_get_name(ttyname(0)) : "tcpip";
state.linename = isatty(0) ? port_get_name(ttyname(0)) : xstrcpy("tcpip");
if( !inetd )
{