diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/satellite/namedvalue_to_zval.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ext/satellite/namedvalue_to_zval.c b/ext/satellite/namedvalue_to_zval.c index 86fb2cb247..e024daf56a 100644 --- a/ext/satellite/namedvalue_to_zval.c +++ b/ext/satellite/namedvalue_to_zval.c @@ -56,8 +56,15 @@ static zend_bool satellite_any_to_zval_long( const CORBA_any * pSource, zval * pDestination) { CORBA_long * p_value = (CORBA_long *)pSource->_value; - ZVAL_LONG(pDestination, *p_value); - return TRUE; + if (p_value) + { + ZVAL_LONG(pDestination, *p_value); + return TRUE; + } + else + { + return FALSE; + } } static zend_bool satellite_any_to_zval_short( |