Fixed NuttX issue causing an assertion to trigger on unlinking / opening files

This commit is contained in:
Lorenz Meier
2012-11-15 17:13:32 +01:00
parent dad1304503
commit 1306008467
+1
View File
@@ -400,6 +400,7 @@ int files_allocate(FAR struct inode *inode, int oflags, off_t pos, int minfd)
list->fl_files[i].f_oflags = oflags;
list->fl_files[i].f_pos = pos;
list->fl_files[i].f_inode = inode;
list->fl_files[i].f_priv = NULL;
_files_semgive(list);
return i;
}