[PATCH 2/2] cpukit/libfs/dosfs: Use enum values for enum init

Kinsey Moore kinsey.moore at oarcorp.com
Wed Oct 18 17:52:21 UTC 2023


---
 cpukit/libfs/src/dosfs/msdos_mknod.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libfs/src/dosfs/msdos_mknod.c b/cpukit/libfs/src/dosfs/msdos_mknod.c
index 934805c5f1..8fe01e4985 100644
--- a/cpukit/libfs/src/dosfs/msdos_mknod.c
+++ b/cpukit/libfs/src/dosfs/msdos_mknod.c
@@ -44,7 +44,7 @@ int msdos_mknod(
 )
 {
     int                  rc = RC_OK;
-    fat_file_type_t      type = 0;
+    fat_file_type_t      type = FAT_DIRECTORY;
 
     /*
      *  Figure out what type of msdos node this is.
-- 
2.39.2



More information about the devel mailing list