]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Don't add an empty MESSAGE_DATA(key) header if it doesn't already exist.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 6 Apr 2012 19:58:44 +0000 (19:58 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 6 Apr 2012 19:58:44 +0000 (19:58 +0000)
commit4665986fb1f56170eea5125038731639ee60be88
treea683c8f79dd9f8f3032873e951ef79e03cb3fcd4
parenta485f44022c1e52270244b7bc93efabb4a760be2
Don't add an empty MESSAGE_DATA(key) header if it doesn't already exist.

Doing Set(MESSAGE_DATA(key)=) would add an empty key header if the key
header did not already exist.  If it already existed it would delete it.

* Made msg_set_var_full() exit early if the named variable did not already
exist and the value to set is empty.
........

Merged revisions 361522 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@361523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/message.c