Index: ossp-pkg/var/var.c RCS File: /v/ossp/cvs/ossp-pkg/var/var.c,v rcsdiff -q -kk '-r1.21' '-r1.22' -u '/v/ossp/cvs/ossp-pkg/var/var.c,v' 2>/dev/null --- var.c 2001/11/19 14:10:48 1.21 +++ var.c 2001/11/19 15:15:31 1.22 @@ -1578,6 +1578,10 @@ if (config == NULL) config = &var_config_default; + /* Set the result pointer to the begining of the input buffer so + that it is correctly initialized in case we fail with an error. */ + *result = (char *)input_buf; + /* Expand the class description for valid variable names. */ if ((rc = expand_character_class(config->namechars, nameclass)) != VAR_OK) return rc;