diff options
author | Steven Schubiger <stsc@refcnt.org> | 2017-04-16 22:29:22 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2017-04-16 22:29:22 +0200 |
commit | 4848afa27f5788eba267c7e8508efdcb1fec41b3 (patch) | |
tree | aff82a4f06cb1203a82b7be2c3a46fba51053479 /colorize.c | |
parent | eaa41b9e9f0bc54518efb56afb3bac671dbe2aba (diff) | |
download | colorize-4848afa27f5788eba267c7e8508efdcb1fec41b3.tar.gz colorize-4848afa27f5788eba267c7e8508efdcb1fec41b3.tar.bz2 |
Don't xstrdup() optarg
Diffstat (limited to 'colorize.c')
-rw-r--r-- | colorize.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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; |