Skip to content

Commit 7dc9747

Browse files
committed
Fix file lists
1 parent a524028 commit 7dc9747

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/v.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ int main (int argc, char * argv[]) {
108108
/*= Input ==================================================================*/
109109

110110
drawpars dp = dp_init();
111-
112111
int fn = 0;
113112
char ** flist = malloc(argc*sizeof(char*));
114113
for(int i=1; i<argc; i++){

src/v/load.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void * read_files(int fn, char ** flist, drawpars * dp){
106106

107107
void * ent;
108108
int i=0;
109-
while(!(ent = ent_read(flist[i], dp)) && i<fn){
109+
while(i<fn && !(ent = ent_read(flist[i], dp))){
110110
PRINT_WARN("cannot read file '%s'\n", flist[i]);
111111
i++;
112112
}

0 commit comments

Comments
 (0)