fs_index: Clarified errno setting

This commit is contained in:
Axel Dörfler
2020-06-25 19:11:05 +02:00
parent 1e9cdb0bd8
commit 60162d0118
+2 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2008, Axel Dörfler, [email protected].
* Copyright 2002-2020, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -67,6 +67,7 @@ fs_open_index_dir(dev_t device)
// allocate the DIR structure
if ((dir = __create_dir_struct(fd)) == NULL) {
// __create_dir_struct() already sets errno
_kern_close(fd);
return NULL;
}