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