diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2017-10-02 18:54:36 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2017-10-02 18:54:36 +0200 | 
| commit | 4342eab3c36ed87085fedf87bd0641889051c388 (patch) | |
| tree | 474f4a109a8b12deedc81cb653f142bfa04520e2 /src | |
| parent | faf94a3aa5310e7ed461c9fe60f6f3b834c986e5 (diff) | |
Fix segfault when running slideshow mode with !opt.display
Happens e.g. when using -O without enabling thumbnail/index mode
Closes #335
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -73,11 +73,14 @@ int main(int argc, char **argv)  		feh_wm_set_bg_filelist(opt.bgmode);  		exit(0);  	} -	else { +	else if (opt.display){  		/* Slideshow mode is the default. Because it's spiffy */  		opt.slideshow = 1;  		init_slideshow_mode();  	} +	else { +		eprintf("Invalid option combination"); +	}  	/* main event loop */  	while (feh_main_iteration(1)); | 
