From: Marco Hunsicker Date: Sat, 15 Mar 2014 13:50:07 +0000 (+0100) Subject: Avoid unnecessary string duplication X-Git-Tag: 2.9~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=93ead58bc16ba589fec58af375b0f6b0b4344290;p=i3%2Fi3status Avoid unnecessary string duplication This patch removes an unnecessary string duplication that was only used to avoid a compiler warning. --- 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; }