diff options
author | Guy Harris <gharris@sonic.net> | 2020-07-15 18:11:18 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-07-16 01:31:16 +0000 |
commit | 44ca0af5dff96f56d59a8240785b97aff1b1b097 (patch) | |
tree | 42df18eba0e2e7c7e35dfdf15591d0b26922cdfa /extcap | |
parent | dccc382b4f8d0380fa73f31f6ad8625459ff7046 (diff) |
extcap-base: no need to get the basename of the executable path twice.
Just use extcap->exename.
Change-Id: I85cfda2afaf776f3222cf362bcd6c675b4ff1504
Reviewed-on: https://code.wireshark.org/review/37876
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
Diffstat (limited to 'extcap')
-rw-r--r-- | extcap/extcap-base.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/extcap/extcap-base.c b/extcap/extcap-base.c index 80a2312c5b..629e9e759f 100644 --- a/extcap/extcap-base.c +++ b/extcap/extcap-base.c @@ -83,16 +83,13 @@ void extcap_base_set_util_info(extcap_parameters * extcap, const char * exename, if (!minor) g_assert(!release); - gchar * basename = g_path_get_basename(exename); - extcap->version = g_strdup_printf("%s version %s%s%s%s%s", - basename, + extcap->exename, major, minor ? "." : "", minor ? minor : "", release ? "." : "", release ? release : ""); - g_free(basename); extcap->helppage = g_strdup(helppage); } |