diff options
Diffstat (limited to 'src/opendeco-cli.c')
-rw-r--r-- | src/opendeco-cli.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/opendeco-cli.c b/src/opendeco-cli.c index 579e013..e3fd852 100644 --- a/src/opendeco-cli.c +++ b/src/opendeco-cli.c @@ -79,9 +79,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) arguments->time = arg ? atof(arg) : -1; break; case 'g': - if (arguments->gas) - free(arguments->gas); - + free(arguments->gas); arguments->gas = strdup(arg); break; case 'p': @@ -100,9 +98,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) arguments->gfhigh = arg ? atoi(arg) : -1; break; case 'G': - if (arguments->decogasses) - free(arguments->decogasses); - + free(arguments->decogasses); arguments->decogasses = strdup(arg); break; case 'S': |