The kvp_frame_get_string() function returns a pointer to an internal

string.  Mark it 'const' to prevent callers from trying to free it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13786 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2006-04-15 16:40:03 +00:00
parent 39fad14808
commit dc28af130f
8 changed files with 23 additions and 12 deletions

View File

@@ -1747,7 +1747,7 @@ xaccTransGetVoidStatus(const Transaction *trans)
return (kvp_frame_get_slot(trans->inst.kvp_data, void_reason_str) != NULL);
}
char *
const char *
xaccTransGetVoidReason(const Transaction *trans)
{
g_return_val_if_fail(trans, NULL);
@@ -1757,7 +1757,7 @@ xaccTransGetVoidReason(const Transaction *trans)
Timespec
xaccTransGetVoidTime(const Transaction *tr)
{
char *val;
const char *val;
Timespec void_time = {0,0};
g_return_val_if_fail(tr, void_time);