bug fix from lucho

This commit is contained in:
rsc 2005-02-20 22:51:24 +00:00
parent 3e1960ce9e
commit d24aad8fd7

View file

@ -686,9 +686,8 @@ vacmerge(DirSink *dsink, char *lname, char *sname)
VacDir dir;
uvlong max;
p = strrchr(sname, '.');
if(p == 0 || strcmp(p, ".vac"))
return 0;
if((p=strrchr(sname, '.') == nil || strcmp(p, ".vac") != 0)
return -1;
d = nil;
fs = vacfsopen(dsink->sink->z, sname, VtOREAD, 100);