Fix warning

This commit is contained in:
Zeev Suraski 2000-02-01 18:54:01 +00:00
parent 01e6ca33ab
commit 39adeaf4f4

View File

@ -169,16 +169,15 @@ static inline zval *_get_object_zval_ptr(znode *node, temp_variable *Ts, int *sh
static inline zval **_get_zval_ptr_ptr(znode *node, temp_variable *Ts ELS_DC)
{
switch(node->op_type) {
case IS_VAR:
if (Ts[node->u.var].var.ptr_ptr) {
PZVAL_UNLOCK(*Ts[node->u.var].var.ptr_ptr);
} else if (Ts[node->u.var].EA.type==IS_STRING_OFFSET) {
PZVAL_UNLOCK(Ts[node->u.var].EA.str);
}
return Ts[node->u.var].var.ptr_ptr;
break;
EMPTY_SWITCH_DEFAULT_CASE()
if (node->op_type==IS_VAR) {
if (Ts[node->u.var].var.ptr_ptr) {
PZVAL_UNLOCK(*Ts[node->u.var].var.ptr_ptr);
} else if (Ts[node->u.var].EA.type==IS_STRING_OFFSET) {
PZVAL_UNLOCK(Ts[node->u.var].EA.str);
}
return Ts[node->u.var].var.ptr_ptr;
} else {
return NULL;
}
}