fixed segfault if state.override.run is NULL
This commit is contained in:
@@ -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 ))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user