[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH libext2 3/8] 20: Uninitialisierte Dereferenzierung gefixt



Öhm, ja. Der Code war einfach Blödsinn. Es gibt keinen Grund, sich
anzuschauen, wer der Originalautor ist.

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 tests/20_file_size/test.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/20_file_size/test.c b/tests/20_file_size/test.c
index 83a9734..2a0a7b0 100644
--- a/tests/20_file_size/test.c
+++ b/tests/20_file_size/test.c
@@ -10,8 +10,9 @@
  */
 int run_test(ext2_fs_t* fs)
 {
-    ext2_inode_t rootdir;
-    rootdir.raw->size = 0;
+    ext2_inode_t rootdir = {
+        .raw = NULL,
+    };
 
     ext2_fs_mount(fs);
 
-- 
1.8.1.4