Make generate_exchange_uuid() always return the passed ast_str pointer.
authorSean Bright <sean@malleable.com>
Thu, 13 Dec 2012 21:20:32 +0000 (21:20 +0000)
committerSean Bright <sean@malleable.com>
Thu, 13 Dec 2012 21:20:32 +0000 (21:20 +0000)
commit1e51b9eaa1eda32ea1135ff1df268d5c3908c0f3
tree6a43c6ae17e769681f24e7a26d5f1131ce2f2c80
parent0f62fa6e476b0d8f64df03f21df359cb7bab6d3e
Make generate_exchange_uuid() always return the passed ast_str pointer.

I changed this code earlier to return NULL if it wasn't able to generate a UUID,
whereas the earlier code would always return the ast_str that was passed in.
Switch back to returning the ast_str, only set it to the empty string instead if
UUID generation fails.  We still do a validity check later which will catch this
and blow up if necessary.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_calendar_exchange.c