(add_engine): reassign engines variable after realloc

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17181 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-23 20:37:03 +00:00
parent bc129f6ab2
commit 78ed40ac39

View File

@@ -207,7 +207,8 @@ add_engine(ENGINE *engine)
d = realloc(engines, (num_engines + 1) * sizeof(*engines));
if (d == NULL)
return 1;
d[num_engines++] = engine;
engines = d;
engines[num_engines++] = engine;
return 1;
}