diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index ce52bd954df6c44c3b246782283e05c2b8f02788..ead7df066853b8aecbb497e4a8efbf70d828c5c7 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c @@ -184,7 +184,7 @@ static int gfs2_dir_write_data(struct gfs2_inode *ip, const char *buf, while (copied < size) { unsigned int amount; struct buffer_head *bh; - int new; + int new = 0; amount = size - copied; if (amount > sdp->sd_sb.sb_bsize - o)