Fixed possible crash

This commit is contained in:
Dmitry Stogov 2005-07-06 14:15:51 +00:00
parent 30c916f21a
commit e7217e032c

View File

@ -2298,7 +2298,7 @@ static zval *guess_zval_convert(encodeTypePtr type, xmlNodePtr data)
if (tmpattr != NULL) {
type_name = tmpattr->children->content;
enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, tmpattr->children->content);
if (type == &enc->details) {
if (enc && type == &enc->details) {
enc = NULL;
}
if (enc != NULL) {