diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2016-04-27 10:31:28 +0000 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2016-04-27 10:31:28 +0000 |
commit | efbf233c8591c9310e326603b1c16368afd64564 (patch) | |
tree | 4f6e6a66bd1c7df7a2f0df7e04d842c5c462eaa1 /CHANGELOG | |
parent | 5687c3e419e88687a97b5bfa728ffe92bf8d4e98 (diff) | |
download | profani-tty-efbf233c8591c9310e326603b1c16368afd64564.tar.gz |
Define stanza's attributes as const char*
In most get-like funcitons libstrophe returns pointer to a string that resides in an internal structure (e.g. xmpp_stanza_t). Hence, Profanity must not change such strings. Define respective variables as 'const char*' to reduce a chance of error and conform future libstrophe's interface. This patch mostly replaces 'char *' with 'const char*', but also fixes two memory leaks after stanza_get_reason(). Add comment within stanza_get_reason() to fix conflict with different allocator types.
Diffstat (limited to 'CHANGELOG')
0 files changed, 0 insertions, 0 deletions