fixed segfault if state.override.run is NULL

master
Max N. Boyarov 18 years ago
parent 99f2cb7474
commit 15830989ee

@ -669,7 +669,7 @@ do_session:
errmsg = "cannot lock address";
gotoexit(BFERR_SYSTEM_LOCKED);
}
if( strlen(state.override.run) > 0 )
if( NULL != state.override.run && strlen(state.override.run) > 0 )
{
if ( (runrc = system(state.override.run) != 0 ))
{

Loading…
Cancel
Save