(ef_init_chr): Sentinel names are now null, simplify sentinel check.
This commit is contained in:
parent
9200b7f84b
commit
4fb17a62c0
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue