only load the session from file if a file was provided

This commit is contained in:
Dana Jansens 2003-07-31 16:42:47 +00:00
parent 36056a69d7
commit e5afb0db59

View file

@ -134,7 +134,8 @@ int main(int argc, char **argv)
if (fcntl(ConnectionNumber(ob_display), F_SETFD, 1) == -1)
exit_with_error("Failed to set display as close-on-exec.");
session_load(sm_save_file);
if (sm_save_file)
session_load(sm_save_file);
session_startup(argc, argv);
#ifdef USE_LIBSN