Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a752273 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "Fix uninitialized variable bug in sdcard emulator - Following members...

Merge "Fix uninitialized variable bug in sdcard emulator - Following members were not initialized in fuse_init().   fuse->root.actual_name   fuse->root.gen - Initialize fuse->root with memset()."
parents b5132635 8349cce8
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -326,15 +326,9 @@ void fuse_init(struct fuse *fuse, int fd, const char *path)

    fuse->all = &fuse->root;

    memset(&fuse->root, 0, sizeof(fuse->root));
    fuse->root.nid = FUSE_ROOT_ID; /* 1 */
    fuse->root.next = 0;
    fuse->root.child = 0;
    fuse->root.parent = 0;

    fuse->root.all = 0;
    fuse->root.refcount = 2;

    fuse->root.name = 0;
    rename_node(&fuse->root, path);
}