VFS: initialize variables

This commit is contained in:
Thomas Veerman 2013-01-11 12:46:44 +00:00
parent aa521228a5
commit bdfef53dbf

View File

@ -180,7 +180,7 @@ int do_rename()
{ {
/* Perform the rename(name1, name2) system call. */ /* Perform the rename(name1, name2) system call. */
int r = OK, r1; 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; struct vmnt *oldvmp, *newvmp, *vmp2;
char old_name[PATH_MAX]; char old_name[PATH_MAX];
char fullpath[PATH_MAX]; char fullpath[PATH_MAX];