From 09a0a665162b69d11d5b433e83d20e0c1cb53dda Mon Sep 17 00:00:00 2001 From: Martin Willers Date: Tue, 21 Apr 2020 17:25:03 +0200 Subject: Minor optimization There is no need to have both an array and a pointer to it; just use the array directly. Signed-off-by: Martin Willers --- src/lib/dlt_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index 318e3ef..85c07f4 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -95,7 +95,7 @@ static int atexit_registered = 0; /* used to disallow DLT usage in fork() child */ static int g_dlt_is_child = 0; /* String truncate message */ -static const char *STR_TRUNCATED_MESSAGE = "... <>"; +static const char STR_TRUNCATED_MESSAGE[] = "... <>"; /* Enum for type of string */ enum StringType -- cgit v1.2.1