aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2018-05-05 12:28:14 +0100
committerHarry Jeffery <harry@exec64.co.uk>2018-05-05 12:28:14 +0100
commita7c1fb4e17bf32d0767d1c5f64cc6f22c6f6989a (patch)
tree0091ec820e853c41d6b840bac764220a4a6557af /src
parent9b1968821d73489259ab6c274949efb1f4dfe54d (diff)
downloadimv-a7c1fb4e17bf32d0767d1c5f64cc6f22c6f6989a.tar.gz
Correctly handle out-of-paths case
imv_navigator_selection doesn't return NULL anymore, so we should check it for being empty
Diffstat (limited to 'src')
-rw-r--r--src/imv.c2
1 files changed, 1 insertions, 1 deletions
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;