From: Antony Dovgal Date: Fri, 19 May 2006 10:28:54 +0000 (+0000) Subject: MFH: fix possible usage of uninitialized variable X-Git-Tag: php-4.4.3RC1~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5795b68a12bb4f6f2150b3e3414a041f8ab73f31;p=php MFH: fix possible usage of uninitialized variable --- diff --git a/ext/sysvmsg/sysvmsg.c b/ext/sysvmsg/sysvmsg.c index 7078fc612a..a7ce77f8b9 100644 --- a/ext/sysvmsg/sysvmsg.c +++ b/ext/sysvmsg/sysvmsg.c @@ -318,8 +318,9 @@ PHP_FUNCTION(msg_receive) if (!php_var_unserialize(&tmp, &p, p + result, &var_hash TSRMLS_CC)) { zend_error(E_WARNING, "%s(): message corrupted", get_active_function_name(TSRMLS_C)); RETVAL_FALSE; + } else { + REPLACE_ZVAL_VALUE(&out_message, tmp, 0); } - REPLACE_ZVAL_VALUE(&out_message, tmp, 0); FREE_ZVAL(tmp); PHP_VAR_UNSERIALIZE_DESTROY(var_hash); } else {