]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
debugfs: initialize inode to 0 in list_dir_proc() if no inode nr
authorEric Sandeen <sandeen@redhat.com>
Sun, 25 Sep 2011 04:49:58 +0000 (00:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 25 Sep 2011 05:55:28 +0000 (01:55 -0400)
commitd352f838e8d16e7cda52d3b57cd31d4582937a13
tree7bbf079a387093f4f7bb8abc6613239f1c664edc
parentd9c60e04b3b18b13d7707f1876ac7bce89df10e9
debugfs: initialize inode to 0 in list_dir_proc() if no inode nr

If (!ino), the inode will be uninitialized when we print it
in the PARSE_OPT case.

So do the same as the LONG_OPT case, and memset it to 0 if
(!ino).

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/ls.c