(ef_init_chr): Sentinel names are now null, simplify sentinel check.

This commit is contained in:
Markus Armbruster 2005-11-07 07:54:16 +00:00
parent 9200b7f84b
commit 4fb17a62c0

View file

@ -530,9 +530,7 @@ ef_init_chr(int type, size_t size, ptrdiff_t name_offs)
struct empfile *ep = &empfile[type];
char *p;
for (p = ep->cache;
*((char **)(p + name_offs)) && **((char **)(p + name_offs));
p += size) ;
for (p = ep->cache; *((char **)(p + name_offs)); p += size) ;
ep->cids = ep->fids = (p - ep->cache) / size;
}