mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Use the correct type when allocating flow node edges.
sizeof (struct) vs sizeof (struct *). Ouch.
This commit is contained in:
parent
6a3c775270
commit
9d418379bf
1 changed files with 1 additions and 1 deletions
|
@ -983,7 +983,7 @@ flow_make_edges (flowgraph_t *graph)
|
|||
|
||||
if (graph->edges);
|
||||
free (graph->edges);
|
||||
graph->edges = malloc (graph->num_edges * sizeof (flowedge_t *));
|
||||
graph->edges = malloc (graph->num_edges * sizeof (flowedge_t));
|
||||
for (j = 0, i = 0; i < graph->num_nodes + 2; i++) {
|
||||
node = graph->nodes[i];
|
||||
for (succ = set_first (node->successors); succ;
|
||||
|
|
Loading…
Reference in a new issue