Patch to prevent duplicate prices
Derek Atkins
warlord at MIT.EDU
Sun Oct 31 19:34:59 EST 2004
Hi,
This patch had a few problems with it, like it didn't compile due to
missing prototypes. I tracked this down to the fact that you used
"malloc()" and free()". I've applied a fixed version to 1.8 and HEAD
and I'll commit it to CVS soon.
For the record, don't use malloc() and free(), use g_new0() (or other
g_alloc macros) and g_free().
-derek
PS: patches should be sent to gnucash-patches or, better yet, put into
bugzilla with a keyword PATCH. Patches sent here can easily get lost.
Phil Longstaff <plongstaff at newearth.org> writes:
> I have found this patch to be useful. It is built on the 1.8.X branch.
> It checks each new price being added to the pricedb and rejects any new
> prices where the date, price, commodity and currency match any existing
> price. It prevents duplicate prices in the pricedb if you download
> quotes and receive the same quote for any commodity.
>
> Phil
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list