diff options
author | Marco Hunsicker | 2014-03-15 14:50:07 +0100 |
---|---|---|
committer | Michael Stapelberg | 2014-03-15 18:00:54 +0100 |
commit | 93ead58bc16ba589fec58af375b0f6b0b4344290 (patch) | |
tree | 83fca40c0f62a19ea6b1c96cf86a521e6a881828 /i3status.c | |
parent | Remove custom color options from order array (diff) |
Avoid unnecessary string duplication
This patch removes an unnecessary string duplication that was only
used to avoid a compiler warning.
Diffstat (limited to 'i3status.c')
-rw-r--r-- | i3status.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |