From b9a46e6e87d26621cd320ecbf10fd2ee0ffd8f27 Mon Sep 17 00:00:00 2001 From: erg Date: Fri, 12 Sep 2008 20:52:37 +0000 Subject: [PATCH] Fix uninitialized variable. --- cmd/gvpr/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gvpr/compile.c b/cmd/gvpr/compile.c index be5fa0145..639c9825b 100644 --- a/cmd/gvpr/compile.c +++ b/cmd/gvpr/compile.c @@ -845,7 +845,7 @@ getval(Expr_t * pgm, Exnode_t * node, Exid_t * sym, Exref_t * ref, gp = INT2PTR(Agraph_t *, args[0].integer); ep = INT2PTR(Agedge_t *, args[1].integer); if (!gp) - gp = agroot(np); + gp = agroot(ep); if (ep) { v.integer = PTR2INT(addEdge(gp, ep, 0)); } else { -- 2.40.0