diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2018-05-05 12:28:14 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2018-05-05 12:28:14 +0100 |
commit | a7c1fb4e17bf32d0767d1c5f64cc6f22c6f6989a (patch) | |
tree | 0091ec820e853c41d6b840bac764220a4a6557af | |
parent | 9b1968821d73489259ab6c274949efb1f4dfe54d (diff) | |
download | imv-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
-rw-r--r-- | src/imv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |