fixed segfault if state.override.run is NULL

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

@ -669,7 +669,7 @@ do_session:
errmsg = "cannot lock address"; errmsg = "cannot lock address";
gotoexit(BFERR_SYSTEM_LOCKED); 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 )) if ( (runrc = system(state.override.run) != 0 ))
{ {

Loading…
Cancel
Save