OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.c versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.c 1.21 -> 1.22

--- 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;

CVSTrac 2.0.1