Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2012 02:04:11 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243535 - head/sys/dev/sound/pci/hda
Message-ID:  <201211260204.qAQ24B88068679@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Mon Nov 26 02:04:11 2012
New Revision: 243535
URL: http://svnweb.freebsd.org/changeset/base/243535

Log:
  Fix uninitialized variable reported by gcc, but not clang.

Modified:
  head/sys/dev/sound/pci/hda/hdaa.c

Modified: head/sys/dev/sound/pci/hda/hdaa.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdaa.c	Mon Nov 26 01:57:22 2012	(r243534)
+++ head/sys/dev/sound/pci/hda/hdaa.c	Mon Nov 26 02:04:11 2012	(r243535)
@@ -5552,7 +5552,7 @@ hdaa_dump_ctls(struct hdaa_pcm_devinfo *
 	struct hdaa_devinfo *devinfo = pdevinfo->devinfo;
 	struct hdaa_audio_ctl *ctl;
 	char buf[64];
-	int i, j, printed;
+	int i, j, printed = 0;
 
 	if (flag == 0) {
 		flag = ~(SOUND_MASK_VOLUME | SOUND_MASK_PCM |



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