[GFS2] fs/gfs2/dir.c:gfs2_dir_write_data(): don't use an uninitialized variable
authorAdrian Bunk <bunk@stusta.de>
Thu, 19 Oct 2006 13:20:04 +0000 (15:20 +0200)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 20 Oct 2006 13:15:31 +0000 (09:15 -0400)
commit348acd48f050f5ba7fa917b1421ae34443be97dd
tree888d1915580fdb2629bc6165b700b2661d660f14
parentb0cb66955f4bf7a72b544096ceef48a829361a3c
[GFS2] fs/gfs2/dir.c:gfs2_dir_write_data(): don't use an uninitialized variable

In the "if (extlen)" case, "new" might be used uninitialized.

Looking at the code, it should be initialized to 0.

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c