]> Zhao Yanbai Git Server - minix.git/commitdiff
VFS: initialize variables
authorThomas Veerman <thomas@minix3.org>
Fri, 11 Jan 2013 12:46:44 +0000 (12:46 +0000)
committerThomas Veerman <thomas@minix3.org>
Fri, 11 Jan 2013 12:46:44 +0000 (12:46 +0000)
servers/vfs/link.c

index 5ef433cb4a10000f7cf0dd3c52ea3017c5a65490..0b68f4d2a2550620f428a1e3480b4570de387feb 100644 (file)
@@ -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];