From: Thomas Veerman Date: Fri, 11 Jan 2013 12:46:44 +0000 (+0000) Subject: VFS: initialize variables X-Git-Tag: v3.2.1~119 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=bdfef53dbf1235c0342621c587e7eea8d2c2518d;p=minix.git VFS: initialize variables --- diff --git a/servers/vfs/link.c b/servers/vfs/link.c index 5ef433cb4..0b68f4d2a 100644 --- a/servers/vfs/link.c +++ b/servers/vfs/link.c @@ -180,7 +180,7 @@ int do_rename() { /* Perform the rename(name1, name2) system call. */ int r = OK, r1; - struct vnode *old_dirp, *new_dirp, *new_dirp_l, *vp; + struct vnode *old_dirp = NULL, *new_dirp = NULL, *new_dirp_l = NULL, *vp; struct vmnt *oldvmp, *newvmp, *vmp2; char old_name[PATH_MAX]; char fullpath[PATH_MAX];