summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Proxy.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-05-24 06:27:29 +0000
committerMatthew Newhook <matthew@zeroc.com>2007-05-24 06:27:29 +0000
commitd3281928330ed4a3f649897be7875dfa9626dc24 (patch)
treed616131ad4e949454e93329f21b163f72fdc25a0 /py/modules/IcePy/Proxy.cpp
parentadding more downcast tests (diff)
downloadice-d3281928330ed4a3f649897be7875dfa9626dc24.tar.bz2
ice-d3281928330ed4a3f649897be7875dfa9626dc24.tar.xz
ice-d3281928330ed4a3f649897be7875dfa9626dc24.zip
fix bug with uncheckedCast
Diffstat (limited to 'py/modules/IcePy/Proxy.cpp')
-rw-r--r--py/modules/IcePy/Proxy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp
index b99fedd924d..d27fc464ece 100644
--- a/py/modules/IcePy/Proxy.cpp
+++ b/py/modules/IcePy/Proxy.cpp
@@ -1805,7 +1805,7 @@ proxyIceUncheckedCast(PyObject* type, PyObject* args)
{
PyObject* obj;
char* facet;
- if(!PyArg_ParseTuple(args, STRCAST("Os"), &obj, &facet))
+ if(!PyArg_ParseTuple(args, STRCAST("Oz"), &obj, &facet))
{
return 0;
}
@@ -1824,7 +1824,7 @@ proxyIceUncheckedCast(PyObject* type, PyObject* args)
ProxyObject* p = reinterpret_cast<ProxyObject*>(obj);
- if(strlen(facet) > 0)
+ if(facet && strlen(facet) > 0)
{
return createProxy((*p->proxy)->ice_facet(facet), *p->communicator, type);
}