From 57ef06e242dbbce390547d9711f810fc60829219 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 5 Jun 2016 22:24:47 -0400 Subject: *_stdup_printf -> strdup for "single string only" formatting. Done for performance improvements. This could probably be done in checkAPIs.pl, but this was just a quick manual check with grepping. Change-Id: I91ff102cb528bb00fa2f65489de53890e7e46f2d Reviewed-on: https://code.wireshark.org/review/15751 Reviewed-by: Michael Mann Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Jaap Keuter --- epan/dissectors/packet-lbttcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-lbttcp.c') diff --git a/epan/dissectors/packet-lbttcp.c b/epan/dissectors/packet-lbttcp.c index 615b760255..d91f19e85d 100644 --- a/epan/dissectors/packet-lbttcp.c +++ b/epan/dissectors/packet-lbttcp.c @@ -332,7 +332,7 @@ static gboolean lbttcp_tag_update_cb(void * record, char * * error_string) if (tag->name == NULL) { - *error_string = g_strdup_printf("Tag name can't be empty"); + *error_string = g_strdup("Tag name can't be empty"); return FALSE; } else @@ -340,7 +340,7 @@ static gboolean lbttcp_tag_update_cb(void * record, char * * error_string) g_strstrip(tag->name); if (tag->name[0] == 0) { - *error_string = g_strdup_printf("Tag name can't be empty"); + *error_string = g_strdup("Tag name can't be empty"); return FALSE; } } -- cgit v1.2.3