Get rid of var_uninit()

This commit is contained in:
Zeev Suraski 2001-07-15 19:03:04 +00:00
parent c4f2e0197b
commit 94f5950438
5 changed files with 5 additions and 5 deletions

View File

@ -552,7 +552,7 @@ PHPAPI int php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent,
else switch(var_arg->vt & ~VT_BYREF)
{
case VT_EMPTY:
var_uninit(pval_arg);
pval_arg->type = IS_NULL;
break;
case VT_UI1:

View File

@ -552,7 +552,7 @@ static pval _java_getset_property
0, (void **) &pobject);
obj = zend_list_find((*pobject)->value.lval,&type);
result = (jlong)(long) &presult;
var_uninit(&presult);
presult.type = IS_NULL;
if (!obj || (type!=le_jobject)) {
php_error(E_ERROR,

View File

@ -552,7 +552,7 @@ PHPAPI int php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent,
else switch(var_arg->vt & ~VT_BYREF)
{
case VT_EMPTY:
var_uninit(pval_arg);
pval_arg->type = IS_NULL;
break;
case VT_UI1:

View File

@ -552,7 +552,7 @@ static pval _java_getset_property
0, (void **) &pobject);
obj = zend_list_find((*pobject)->value.lval,&type);
result = (jlong)(long) &presult;
var_uninit(&presult);
presult.type = IS_NULL;
if (!obj || (type!=le_jobject)) {
php_error(E_ERROR,

View File

@ -2257,7 +2257,7 @@ PHP_FUNCTION(fd_set)
if(ARG_COUNT(ht) <= 0) {
php_error(E_WARNING, "fd_set: Must be passed at least one value" );
var_uninit(return_value);
return_value->type = IS_NULL;
return;
}
else if(ARG_COUNT(ht) == 1) {