(ef_ptr): Null cache can't happen.
This commit is contained in:
parent
4cbb45d0e0
commit
ae9e7dad43
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ ef_ptr(int type, int id)
|
||||||
if (ef_check(type) < 0)
|
if (ef_check(type) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
ep = &empfile[type];
|
ep = &empfile[type];
|
||||||
if (CANT_HAPPEN(!(ep->flags & EFF_MEM)))
|
if (CANT_HAPPEN(!(ep->flags & EFF_MEM) || !ep->cache))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (id < 0 || id >= ep->fids)
|
if (id < 0 || id >= ep->fids)
|
||||||
return NULL; /* FIXME can this happen? */
|
return NULL; /* FIXME can this happen? */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue