File new should return file_t pointer if it exists in the file table.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
be86197b0b
commit
2df878232b
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ int delete_dynamic_file(file_t *f) {
|
|||
|
||||
file_t *file_new(uint16_t fid) {
|
||||
file_t *f;
|
||||
if ((f = search_dynamic_file(fid)))
|
||||
if ((f = search_dynamic_file(fid)) || (f = search_by_fid(fid, NULL, SPECIFY_EF)))
|
||||
return f;
|
||||
if (dynamic_files == MAX_DYNAMIC_FILES)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue