]> 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:47:29 +0000 (19:47 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 6 Apr 2012 19:47:29 +0000 (19:47 +0000)
commit4996e7978fab511f67cdfe4d66fb1666ccb78f73
treea0e47babc8f6ea57749f8f87537e6d747fa82f6d
parent455c5c8c66a547fff87b6c4578491844eb881fea
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.

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