]> granicus.if.org Git - graphviz/commitdiff
remove shadowing of path in gvplugin_activate
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 29 May 2021 21:04:40 +0000 (14:04 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 01:57:34 +0000 (18:57 -0700)
This squashes a -Wshadow compiler warning.

lib/gvc/gvplugin.c

index 3df6a865cc931844cf79bec2fde63ad2dbbe6a53..d59199d20bbcd98ea8ba0db6807583ef2d5f9ec3 100644 (file)
@@ -129,7 +129,9 @@ boolean gvplugin_install(GVC_t * gvc, api_t api, const char *typestr,
  * manually changed in the config file.
  */
 static boolean gvplugin_activate(GVC_t * gvc, api_t api,
-                                 const char *typestr, char *name, char *path, gvplugin_installed_t * typeptr)
+                                 const char *typestr, char *name,
+                                 char *plugin_path,
+                                 gvplugin_installed_t * typeptr)
 {
     gvplugin_available_t *pnext;
 
@@ -140,7 +142,7 @@ static boolean gvplugin_activate(GVC_t * gvc, api_t api,
         if ((strcasecmp(typestr, pnext->typestr) == 0)
             && (strcasecmp(name, pnext->package->name) == 0)
             && (pnext->package->path != 0)
-            && (strcasecmp(path, pnext->package->path) == 0)) {
+            && (strcasecmp(plugin_path, pnext->package->path) == 0)) {
             pnext->typeptr = typeptr;
             return TRUE;
         }