mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix more valgrind problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18295 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f2612dea85
commit
47ef48b8dd
@ -750,9 +750,16 @@ gnc_account_create_opening_balance (Account *account,
|
||||
char *
|
||||
gnc_account_get_full_name (const Account *account)
|
||||
{
|
||||
static gchar result[1000];
|
||||
gchar* name;
|
||||
|
||||
if (!account) return NULL;
|
||||
|
||||
return xaccAccountGetFullName (account);
|
||||
name = xaccAccountGetFullName (account);
|
||||
strncpy( result, name, sizeof(result)-1 );
|
||||
result[sizeof(result)] = '\0';
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -192,6 +192,13 @@ gboolean gnc_account_create_opening_balance (Account *account,
|
||||
time_t date,
|
||||
QofBook *book);
|
||||
|
||||
/**
|
||||
* Returns the account full name. Unlike xaccAccountGetFullName(), the
|
||||
* string returned must *NOT* be freed.
|
||||
*
|
||||
* @param account Account
|
||||
* @return Account full name
|
||||
*/
|
||||
char * gnc_account_get_full_name (const Account *account);
|
||||
|
||||
|
||||
|
@ -353,7 +353,7 @@ gnc_plugin_page_report_create_widget( GncPluginPage *page )
|
||||
// FIXME. This is f^-1(f(x)), isn't it?
|
||||
DEBUG( "id=%d", priv->reportId );
|
||||
id_name = g_strdup_printf("id=%d", priv->reportId );
|
||||
child_name = gnc_build_url( URL_TYPE_REPORT, id_name, NULL );
|
||||
child_name = gnc_html_build_url( URL_TYPE_REPORT, id_name, NULL );
|
||||
type = gnc_html_parse_url( priv->html, child_name, &url_location, &url_label);
|
||||
DEBUG( "passing id_name=[%s] child_name=[%s] type=[%s], location=[%s], label=[%s]",
|
||||
id_name, child_name ? child_name : "(null)",
|
||||
|
Loading…
Reference in New Issue
Block a user