OSSP CVS Repository

ossp - Difference in ossp-pkg/cfg/cfg_buf.c versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/cfg/cfg_buf.c 1.7 -> 1.8

--- cfg_buf.c    2002/11/18 09:51:29     1.7
+++ cfg_buf.c    2002/11/18 10:23:36     1.8
@@ -125,8 +125,10 @@
 {
     if (buf == NULL)
         return CFG_ERR_ARG;
-    if (ptr != NULL)
+    if (ptr != NULL) {
         *ptr  = buf->buf_ptr;
+        buf->buf_ptr = NULL;
+    }
     if (len != NULL)
         *len  = buf->buf_len;
     if (size != NULL)

CVSTrac 2.0.1