upas/runq: fix typo

one slipped in to the last commit.
This commit is contained in:
Ori Bernstein 2021-01-23 16:38:32 -08:00
parent 51319cc5b5
commit f164ee6dd9

View file

@ -151,12 +151,13 @@ doalldirs(void)
long i, n; long i, n;
if((fd = open(".", OREAD)) == -1) if((fd = open(".", OREAD)) == -1){
warning("opening %s", root); warning("opening %s", root);
return; return;
} }
if((n = dirreadall(fd, &db)) == -1){ if((n = dirreadall(fd, &db)) == -1){
warning("reading %s: ", root); warning("reading %s: ", root);
close(fd);
return; return;
} }
for(i=0; i<n; i++){ for(i=0; i<n; i++){
@ -166,8 +167,8 @@ doalldirs(void)
continue; continue;
dodir(db[i].name); dodir(db[i].name);
} }
free(db);
close(fd); close(fd);
free(db);
} }
/* /*