Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2019 22:10:21 +0000 (UTC)
From:      Sean Eric Fagan <sef@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343882 - head/lib/libutil
Message-ID:  <201902072210.x17MALuO096944@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sef
Date: Thu Feb  7 22:10:20 2019
New Revision: 343882
URL: https://svnweb.freebsd.org/changeset/base/343882

Log:
  r343881 had an uninitialized error.  This fixes that.
  
  PR:             233849
  Reported by:    Andre Albsmeier
  MFC after:      1 month
  Sponsored by:   iXsystems Inc
  Differential Revision:  https://reviews.freebsd.org/D18785

Modified:
  head/lib/libutil/quotafile.c

Modified: head/lib/libutil/quotafile.c
==============================================================================
--- head/lib/libutil/quotafile.c	Thu Feb  7 21:51:39 2019	(r343881)
+++ head/lib/libutil/quotafile.c	Thu Feb  7 22:10:20 2019	(r343882)
@@ -118,7 +118,7 @@ quota_open(struct fstab *fs, int quotatype, int openfl
 	struct dqhdr64 dqh;
 	struct group *grp;
 	struct stat st;
-	int qcmd, serrno;
+	int qcmd, serrno = 0;
 	int ufs;
 
 	if ((qf = calloc(1, sizeof(*qf))) == NULL)



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