Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2008 12:41:23 -0400
From:      "Rohit Tripathi" <rohit.trip@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: uninitialized "width" in st_parse.c ?
Message-ID:  <33615c8e0808160941p47d56e8anc0d666b34a8fbf41@mail.gmail.com>
In-Reply-To: <33615c8e0808160935r377566a2k3df1d256526f56f@mail.gmail.com>
References:  <33615c8e0808160935r377566a2k3df1d256526f56f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jumped the gun here, width need not be initialized:

static char *
number(char *cp, int *n)
{
	char *next;

	*n = (int)strtol(cp, &next, 10);
	if (next == cp)
		expected("number", "<number>", cp);
	return (next);
}



On Sat, Aug 16, 2008 at 12:35 PM, Rohit Tripathi <rohit.trip@gmail.com> wrote:
> I found a build error under cddl/contrib/opensolaris/tools/ctf/cvt and
> saw that width (line 779) was declared but not initialized. Is this
> intentional? After setting it to 64 the build proceeded fine.
>
> -Rohit
>



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