From 93ead58bc16ba589fec58af375b0f6b0b4344290 Mon Sep 17 00:00:00 2001 From: Marco Hunsicker Date: Sat, 15 Mar 2014 14:50:07 +0100 Subject: [PATCH] Avoid unnecessary string duplication This patch removes an unnecessary string duplication that was only used to avoid a compiler warning. --- i3status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3status.c b/i3status.c index cfc1fd6..befe1d6 100644 --- a/i3status.c +++ b/i3status.c @@ -104,8 +104,8 @@ static int parse_align(cfg_t *context, cfg_opt_t *option, const char *value, voi die("Invalid alignment attribute found in section %s, line %d: \"%s\"\n" "Valid attributes are: left, center, right\n", context->name, context->line, value); - char **cresult = result; - *cresult = sstrdup(value); + const char **cresult = result; + *cresult = value; return 0; } -- 2.39.5