Whamcloud - gitweb
debugfs: don't try to fclose NULL
authorEric Sandeen <sandeen@redhat.com>
Fri, 26 Jun 2009 18:57:39 +0000 (13:57 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 29 Jun 2009 05:07:29 +0000 (01:07 -0400)
commitdad0bab204a61c1749e1bbc747f8fa86fa0f1577
tree1339aa4b95261301f5b3c85e58d42b82e18ae196
parentc510d6f2684f2e2fa05c0de7bdaee954743546f8
debugfs: don't try to fclose NULL

do_logdump may jump to errout if fopen(out_file) fails,
but in that case out_file is NULL, and fclose will segfault.

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