From fa74fd7afa5040e8694e106231fe6aeba64b06b5 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Mon, 7 Dec 2020 12:42:26 +0000
Subject: [PATCH] (extfs.c) fix uninitialized scalar variable
Fix uninitialized scalar variable
Found by Coverity
coverity id #32627
coverity id #313665
covertiy id #313669
Signed-off-by: Andreas Mohr <and@gmx.li>
---
src/vfs/extfs/extfs.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/vfs/extfs/extfs.c b/src/vfs/extfs/extfs.c
index 7ddbc7a80..da263b004 100644
a
|
b
|
extfs_generate_entry (struct extfs_super_t *archive, const char *name, struct vf |
200 | 200 | struct vfs_s_inode *inode; |
201 | 201 | struct vfs_s_entry *entry; |
202 | 202 | |
| 203 | memset(&st, 0, sizeof(struct stat)); |
203 | 204 | st.st_ino = VFS_SUPER (archive)->ino_usage++; |
204 | 205 | st.st_dev = archive->rdev; |
205 | 206 | myumask = umask (022); |
… |
… |
extfs_open_archive (int fstype, const char *name, struct extfs_super_t **pparc) |
408 | 409 | vfs_path_t *local_name_vpath = NULL; |
409 | 410 | vfs_path_t *name_vpath; |
410 | 411 | |
| 412 | memset(&mystat, 0, sizeof(struct stat)); |
| 413 | |
411 | 414 | name_vpath = vfs_path_from_str (name); |
412 | 415 | info = &g_array_index (extfs_plugins, extfs_plugin_info_t, fstype); |
413 | 416 | |
… |
… |
extfs_read_archive (FILE * extfsd, struct extfs_super_t *current_archive) |
562 | 565 | else |
563 | 566 | { |
564 | 567 | struct stat st; |
| 568 | memset(&st, 0, sizeof(struct stat)); |
565 | 569 | |
566 | 570 | st.st_ino = super->ino_usage++; |
567 | 571 | st.st_nlink = 1; |