[pytango] 41/122: Fix dev_status and dangling pointer (Issue #24, PR #66)
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.
commit d17f941eefcdfa25829c012ee2817de8406a2ac6
Author: Tiago Coutinho <coutinhotiago at gmail.com>
Date: Tue Sep 27 15:10:45 2016 +0200
Fix dev_status and dangling pointer (Issue #24, PR #66)
The boost override should not translate to const char * directly
---
ext/server/device_impl.cpp | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ext/server/device_impl.cpp b/ext/server/device_impl.cpp
index 60415ad..24bff3d 100644
--- a/ext/server/device_impl.cpp
+++ b/ext/server/device_impl.cpp
@@ -1003,7 +1003,8 @@ Tango::ConstDevString Device_3ImplWrap::dev_status()
{
if (override dev_status = this->get_override("dev_status") )
{
- this->the_status = (const char *)dev_status();
+ std::string status = dev_status();
+ this->the_status = status;
}
else
{
@@ -1178,7 +1179,8 @@ Tango::ConstDevString Device_4ImplWrap::dev_status()
{
if (override dev_status = this->get_override("dev_status") )
{
- this->the_status = (const char *)dev_status();
+ std::string status = dev_status();
+ this->the_status = status;
}
else
{
@@ -1346,7 +1348,8 @@ Tango::ConstDevString Device_5ImplWrap::dev_status()
{
if (override dev_status = this->get_override("dev_status") )
{
- this->the_status = (const char *)dev_status();
+ std::string status = dev_status();
+ this->the_status = status;
}
else
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list