From: Theodore Ts'o Date: Thu, 29 Mar 2007 04:26:10 +0000 (-0400) Subject: [COVERITY] Fix coverity warning in debugfs X-Git-Tag: E2FSPROGS-1_40~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d904dd2ac0240c2a871ca742321c0ea65f493284;p=thirdparty%2Fe2fsprogs.git [COVERITY] Fix coverity warning in debugfs This is a no-op since long_opt isn't currently being used; the -l option to htree_dump is currently unwired to anything at the moment. Signed-off-by: Brian Behlendorf Coverity ID: 47: Used before assigned --- diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index ea0f19670..c49aa63a3 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,9 @@ +2007-03-29 Theodore Tso + + * htree.c (do_htree_dump): Fix coverity use before assignment + warning. (long_opt isn't being used for anything right + now, so this is a no-op) + 2007-03-23 Theodore Tso * logdump.c (do_logdump): Fix file handle leak if logdump fails diff --git a/debugfs/htree.c b/debugfs/htree.c index bd1fd5128..0f7e9c1da 100644 --- a/debugfs/htree.c +++ b/debugfs/htree.c @@ -185,7 +185,7 @@ void do_htree_dump(int argc, char *argv[]) ext2_ino_t ino; struct ext2_inode inode; int c; - int long_opt; + int long_opt = 0; char *buf = NULL; struct ext2_dx_root_info *rootnode; struct ext2_dx_entry *ent;