OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ut_param.c versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ut_param.c 1.4 -> 1.5

--- l2_ut_param.c        2001/09/06 14:37:53     1.4
+++ l2_ut_param.c        2001/09/08 22:06:09     1.5
@@ -86,6 +86,8 @@
                         *(double *)(pa[i].store) = va_get(ap, double); 
                         break;
                     case L2_TYPE_STRING:
+                        if (*(char **)(pa[i].store) != NULL) 
+                            free(*(char **)(pa[i].store));
                         *(char **)(pa[i].store) = va_get(ap, charptr);
                         if (*(char **)(pa[i].store) != NULL)
                             *(char **)(pa[i].store) = strdup(*(char **)(pa[i].store));

CVSTrac 2.0.1