Check-in Number:
|
2158 | |
Date: |
2002-May-27 17:37:21 (local)
2002-May-27 15:37:21 (UTC) |
User: | thl |
Branch: | |
Comment: |
setting size to zero makes lib_var assume static outbuffer |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/lmtp2nntp/lmtp2nntp_msg.c 1.15 -> 1.16
--- lmtp2nntp_msg.c 2002/05/27 15:09:50 1.15
+++ lmtp2nntp_msg.c 2002/05/27 15:37:21 1.16
@@ -673,7 +673,7 @@
*pnOut = strlen(*cppOut);
}
else {
- *cppOut = (char *)mallocex(0);
+ *cppOut = "";
*pnOutsize = 0;
*pnOut = 0;
}
@@ -765,8 +765,8 @@
int i;
if (val_ptr == NULL) {
- *out_ptr = ""; //FIXME will lib_val try to free() this?
- *out_len = 0;
+ *out_ptr = "";
+ *out_len = 0;
*out_size = 0;
return VAR_OK;
}
|
|