summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Hunsicker <i3@hunsicker.de>2014-03-15 14:50:07 +0100
committerMichael Stapelberg <michael@stapelberg.de>2014-03-15 18:00:54 +0100
commit93ead58bc16ba589fec58af375b0f6b0b4344290 (patch)
tree83fca40c0f62a19ea6b1c96cf86a521e6a881828
parentd198403a3bbfd8b567919384dc0fe79dd2c2c436 (diff)
Avoid unnecessary string duplication
This patch removes an unnecessary string duplication that was only used to avoid a compiler warning.
-rw-r--r--i3status.c4
1 files 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;
}