[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: API issues we might want to solve for 1.0

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2003-12-15 00:40:22 CET

On Sun, 2003-12-14 at 18:36, Ben Reser wrote:
> > > - svn_client_ctx_t ctx = { 0 };
> > > + svn_client_ctx_t *ctx = NULL;
> >
> > Don't initialize the pointer to an invalid value; all that serves to do
> > is defeat the compiler's logic for determining whether the pointer is
> > used before it's initialized to a valid value.
>
> Then someone should fix this 3 lines below my change too:
> const svn_opt_subcommand_desc_t *subcommand = NULL;

No, NULL is a valid value for subcommand. It is not a valid value for
ctx.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 15 00:41:05 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.