Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Mar 2013 20:28:39 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r248382 - projects/libzfs_core/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201303162028.r2GKSdaC094825@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Sat Mar 16 20:28:38 2013
New Revision: 248382
URL: http://svnweb.freebsd.org/changeset/base/248382

Log:
  Initialize "error" variable where illumos does.

Modified:
  projects/libzfs_core/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c

Modified: projects/libzfs_core/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
==============================================================================
--- projects/libzfs_core/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c	Sat Mar 16 17:57:00 2013	(r248381)
+++ projects/libzfs_core/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c	Sat Mar 16 20:28:38 2013	(r248382)
@@ -5862,6 +5862,8 @@ zfsdev_ioctl(struct cdev *dev, u_long zc
 		error = EFAULT;
 		goto out;
 	}
+#else
+	error = 0;
 #endif
 
 	if (cflag != ZFS_CMD_COMPAT_NONE) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303162028.r2GKSdaC094825>