From c7d14c6d3450c470cf1122edc3850e1c09c3de22 Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Mon, 9 Jan 2012 17:41:00 -0500 Subject: [PATCH] Fix uninitialized variable --- lib/common/ns.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/common/ns.c b/lib/common/ns.c index a8bd271fe..990082a27 100644 --- a/lib/common/ns.c +++ b/lib/common/ns.c @@ -606,12 +606,11 @@ graphSize (graph_t * g, int* nn, int* ne) * Returns 0 if successful; returns 1 if `he graph was not connected; * returns 2 if something seriously wrong; */ -int rank2(graph_t * g, int balance, int maxiter, int searchsize) +int rank2(graph_t * g, int balance, int maxiter, int search_size) { int iter = 0, feasible; char *ns = "network simplex: "; edge_t *e, *f; - int search_size; #ifdef DEBUG check_cycles(g); @@ -631,7 +630,7 @@ int rank2(graph_t * g, int balance, int maxiter, int searchsize) return 0; } - if (searchsize >= 0) + if (search_size >= 0) Search_size = search_size; else Search_size = SEARCHSIZE; -- 2.40.0