]> granicus.if.org Git - graphviz/commitdiff
graphml2gv graphml_to_gv: remove shadowing of 'gname'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 Jan 2023 00:07:13 +0000 (16:07 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 Jan 2023 17:51:26 +0000 (09:51 -0800)
cmd/tools/graphml2gv.c

index 822df280670ddb9a1f89c1bab8a84c52842a34ec..ed34cd9b7b4e54b1455ec40db4bfcb23d00b61f6 100644 (file)
@@ -354,11 +354,10 @@ static void endElementHandler(void *userData, const char *name)
     }
 }
 
-static Agraph_t *graphml_to_gv(char* gname, FILE * graphmlFile, int* rv)
-{
+static Agraph_t *graphml_to_gv(char *graphname, FILE *graphmlFile, int *rv) {
     char buf[BUFSIZ];
     int done;
-    userdata_t udata = genUserdata(gname);
+    userdata_t udata = genUserdata(graphname);
     XML_Parser parser = XML_ParserCreate(NULL);
 
     *rv = 0;