ossp-pkg/xds/init.c 1.4 -> 1.5
--- init.c 2001/07/08 15:22:00 1.4
+++ init.c 2001/08/01 09:22:50 1.5
@@ -45,7 +45,7 @@
/* Allocate context structure. */
- ctx = calloc(1, sizeof(struct xds_context));
+ ctx = malloc(sizeof(struct xds_context));
if (ctx == NULL)
return NULL; /* errno is set by calloc() */
@@ -53,7 +53,20 @@
ctx->mode = mode;
- /* We are initialized. */
+ /* Initialize buffer handling. */
+
+ ctx->buffer = NULL;
+ ctx->buffer_len = 0;
+ ctx->buffer_capacity = 0;
+ ctx->we_own_buffer = XDS_FALSE;
+
+ /* Initialize engines map. */
+
+ ctx->engines = NULL;
+ ctx->engines_len = 0;
+ ctx->engines_capacity = 0;
+
+ /* Done. */
return ctx;
}
|
|