From a7c1fb4e17bf32d0767d1c5f64cc6f22c6f6989a Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sat, 5 May 2018 12:28:14 +0100 Subject: Correctly handle out-of-paths case imv_navigator_selection doesn't return NULL anymore, so we should check it for being empty --- src/imv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imv.c') diff --git a/src/imv.c b/src/imv.c index 9393dad..9597026 100644 --- a/src/imv.c +++ b/src/imv.c @@ -551,7 +551,7 @@ int imv_run(struct imv *imv) /* if the user has changed image, start loading the new one */ if(imv_navigator_poll_changed(imv->navigator)) { const char *current_path = imv_navigator_selection(imv->navigator); - if(!current_path) { + if(!strcmp("", current_path)) { if(!imv->paths_from_stdin) { fprintf(stderr, "No input files left. Exiting.\n"); imv->quit = true; -- cgit v1.2.3