Re: uninitialized "width" in st_parse.c ?

From: Rohit Tripathi <rohit.trip_at_gmail.com>
Date: Sat, 16 Aug 2008 12:41:23 -0400
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_at_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
>
Received on Sat Aug 16 2008 - 14:41:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:33 UTC