diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2017-02-25 12:00:26 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-02-25 13:36:40 +0000 |
commit | dfc26accc0672e2d2e287ef51adba04b32340de6 (patch) | |
tree | c809a3864bf3f90c6715f776459b9ff5dd47f2c5 /wsutil/filesystem.c | |
parent | 7227728fced5dad3205bf307492e9035453f92da (diff) |
Fix compilation without plugins:
filesystem.c: In function ‘free_progdirs’:
filesystem.c:2209:12: error: ‘plugin_dir’ undeclared (first use in this function)
g_free(plugin_dir);
Change-Id: Ib52b86d41be79b8ed7e42f5fdfaddcae6b0ca5c8
Reviewed-on: https://code.wireshark.org/review/20270
Petri-Dish: Jakub Zawadzki <darkjames-ws@darkjames.pl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'wsutil/filesystem.c')
-rw-r--r-- | wsutil/filesystem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c index 33c78655d5..2b402f14cf 100644 --- a/wsutil/filesystem.c +++ b/wsutil/filesystem.c @@ -2206,8 +2206,10 @@ free_progdirs(void) persconfprofile = NULL; g_free(progfile_dir); progfile_dir = NULL; +#if defined(HAVE_PLUGINS) || defined(HAVE_LUA) g_free(plugin_dir); plugin_dir = NULL; +#endif #ifdef HAVE_EXTCAP g_free(extcap_dir); extcap_dir = NULL; |