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