mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user