aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-04-16 22:29:22 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-04-16 22:29:22 +0200
commit4848afa27f5788eba267c7e8508efdcb1fec41b3 (patch)
treeaff82a4f06cb1203a82b7be2c3a46fba51053479 /colorize.c
parenteaa41b9e9f0bc54518efb56afb3bac671dbe2aba (diff)
downloadcolorize-4848afa27f5788eba267c7e8508efdcb1fec41b3.tar.gz
colorize-4848afa27f5788eba267c7e8508efdcb1fec41b3.tar.bz2
Don't xstrdup() optarg
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/colorize.c b/colorize.c
index 0cfbaad..7683e1c 100644
--- a/colorize.c
+++ b/colorize.c
@@ -369,13 +369,9 @@ process_opts (int argc, char **argv)
case 0: /* long opts */
switch (opt_type)
{
- case OPT_ATTR: {
- char *opt;
- opt = xstrdup (optarg);
- process_opt_attr (opt);
- free (opt);
+ case OPT_ATTR:
+ process_opt_attr (optarg);
break;
- }
case OPT_CLEAN:
clean = true;
break;