Don't use a buffer after it goes out of scope.
authorRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2012 00:01:40 +0000 (00:01 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2012 00:01:40 +0000 (00:01 +0000)
commit6ec5c103d6b09721dff771679f0ca98526b4698b
treed119a5eb65cff0c02b20e7118cb59a8ef9b31c3d
parent14edd30fd221659a49025ccef7e4cd375a0c71c4
Don't use a buffer after it goes out of scope.

's' is set to 'workspace'.  Make sure 'workspace' doesn't go out of scope while
the reference to it via 's' is still used.
........

Merged revisions 359056 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

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

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