aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/editcap.c b/editcap.c
index 0bcab3308c..a67e6ae747 100644
--- a/editcap.c
+++ b/editcap.c
@@ -1382,9 +1382,7 @@ main(int argc, char *argv[])
/* If we don't have an application name add Editcap */
wtap_optionblock_get_option_string(shb_hdr, OPT_SHB_USERAPPL, &shb_user_appl);
if (shb_user_appl == NULL) {
- shb_user_appl = g_strdup("Editcap " VERSION);
- wtap_optionblock_set_option_string(shb_hdr, OPT_SHB_USERAPPL, shb_user_appl);
- g_free(shb_user_appl);
+ wtap_optionblock_set_option_string_format(shb_hdr, OPT_SHB_USERAPPL, "Editcap " VERSION);
}
pdh = editcap_dump_open(filename,