OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/init.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/init.c 1.2 -> 1.3

--- init.c       2001/07/04 16:21:26     1.2
+++ init.c       2001/07/08 14:21:08     1.3
@@ -53,6 +53,16 @@
 
     ctx->mode = mode;
 
+    /* Allocate engines array. */
+
+    ctx->engines = calloc(32, sizeof(engine_map_t));
+    if (ctx->engines == NULL)
+        {
+        free(ctx);
+        return NULL;
+        }
+    ctx->engines_capacity = 32;
+
     /* We are initialized. */
 
     return ctx;

CVSTrac 2.0.1