]> granicus.if.org Git - graphviz/commitdiff
remove now unnecessary cast of a parameter to an agstrfree call
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 4 Jul 2021 04:16:24 +0000 (21:16 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Jul 2021 00:31:35 +0000 (17:31 -0700)
Related to #634.

lib/gvc/gvusershape.c

index df2e22b1d0c9ca3233b8d1f991a5f9240ba05ac9..02da47cd20fe9cfb45b9e55a6fa3b5f1b0c64802 100644 (file)
@@ -649,7 +649,7 @@ void gvusershape_file_release(usershape_t *us)
 
 static void freeUsershape (usershape_t* us)
 {
-    if (us->name) agstrfree(0, (char*)us->name);
+    if (us->name) agstrfree(0, us->name);
     free (us);
 }