[Gnucash-changes] r13140 - gnucash/trunk/src/bin - Recompute
argc after argv may have changed.
Chris Shoemaker
c.shoemaker at cox.net
Tue Feb 7 15:08:51 EST 2006
On Tue, Feb 07, 2006 at 03:03:34PM -0500, David Hampton wrote:
> On Tue, 2006-02-07 at 14:52 -0500, Chris Shoemaker wrote:
> > Author: chris
> > Date: 2006-02-07 14:52:29 -0500 (Tue, 07 Feb 2006)
> > New Revision: 13140
> > Trac: http://svn.gnucash.org/trac/changeset/13140
> >
> > Modified:
> > gnucash/trunk/src/bin/gnucash-bin.c
> > Log:
> > Recompute argc after argv may have changed.
>
> g_option_context already updates argc. Any reason you didn't just pass a
> pointer to argc into gnucash_command_line instead of recomputing the
> value a second time?
Oh, I didn't know that. That's a better fix. We didn't need to do
that before, but it makes sense now.
-chris
More information about the gnucash-devel
mailing list