diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-09-10 23:38:36 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2017-09-11 16:48:49 +0000 |
commit | 69f0cb0cef3e8cc6b49073768f76ff1046ded8b5 (patch) | |
tree | 7a6314bf9e04fc5575a8c61df5f62c68be9e76c8 /tshark.c | |
parent | e7aa63746ba630d88032394f4869fca2c87853a8 (diff) |
wsutil: Initialize and store plugin personal dir
Obviate allocation on every call to get_plugins_pers_dir().
Change-Id: I089ae499f93739d490d4552f59b5db5996f7d26f
Reviewed-on: https://code.wireshark.org/review/23495
Petri-Dish: João Valverde <j@v6e.pt>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -613,11 +613,7 @@ about_folders(void) #if defined(HAVE_PLUGINS) || defined(HAVE_LUA) /* pers plugins */ - path = get_plugins_pers_dir(); - - printf("%-21s\t%s\n", "Personal Plugins:", path); - - g_free(path); + printf("%-21s\t%s\n", "Personal Plugins:", get_plugins_pers_dir()); /* global plugins */ printf("%-21s\t%s\n", "Global Plugins:", get_plugin_dir()); |