aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 903ec1a..ddd559b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -275,7 +275,7 @@ void run(){
}
void readlist(FILE *f){
- int lsize = 1;
+ int lsize = 16;
imageslen = 0;
images = NULL;
while(!feof(f)){
@@ -294,6 +294,10 @@ void readlist(FILE *f){
}
lsize *= 2;
}
+ if(!imageslen){
+ fprintf(stderr, "No images to view\n");
+ exit(EXIT_FAILURE);
+ }
}
int main(int argc, char *argv[]){
@@ -335,3 +339,4 @@ int main(int argc, char *argv[]){
return 0;
}
+