aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/filesystem.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-07-29 14:43:40 -0700
committerGuy Harris <guy@alum.mit.edu>2019-07-29 22:23:36 +0000
commit40af4aa93e469d37bd8e712228ecccb07407c3c6 (patch)
treeebb7d763e9447c2c1842fa9004721d6add83bbdd /wsutil/filesystem.c
parentf0cde7ca34a4975370e1b9ded2fee7df266343f6 (diff)
Rename variable to eliminate shadow variable warning.
get_profile_dir() already calls the corresponding variable is_system; use that in profile_exists() as well. Change-Id: Icce42b2074d64c46598cc7561b3c5468da8ede90 Reviewed-on: https://code.wireshark.org/review/34131 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/filesystem.c')
-rw-r--r--wsutil/filesystem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c
index 6b5d7a6a1d..d502664e38 100644
--- a/wsutil/filesystem.c
+++ b/wsutil/filesystem.c
@@ -1451,7 +1451,7 @@ get_profile_dir(const char *profilename, gboolean is_system)
}
gboolean
-profile_exists(const gchar *profilename, gboolean system)
+profile_exists(const gchar *profilename, gboolean is_system)
{
gchar *path = NULL;
gboolean exists;
@@ -1460,10 +1460,10 @@ profile_exists(const gchar *profilename, gboolean system)
* If we're looking up a system profile, we must have a
* profile name.
*/
- if (system && !profilename)
+ if (is_system && !profilename)
return FALSE;
- path = get_profile_dir(profilename, system);
+ path = get_profile_dir(profilename, is_system);
exists = (test_for_directory(path) == EISDIR) ? TRUE : FALSE;
g_free(path);