summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-03-31 22:29:26 +0200
committerGitHub <[email protected]>2020-03-31 22:29:26 +0200
commit5de09241cd4b79821cc5e1df5d0ff7b45e265ab5 (patch)
tree827733cc047708e95e461623ca65d1ebf379e5c9
parentd19990bed1bd27d5c43f259723585e50b70df6a6 (diff)
downloadSTC-modified-5de09241cd4b79821cc5e1df5d0ff7b45e265ab5.tar.gz
STC-modified-5de09241cd4b79821cc5e1df5d0ff7b45e265ab5.zip
Update copt.h
-rw-r--r--ccl/copt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ccl/copt.h b/ccl/copt.h
index a2351b65..c694921c 100644
--- a/ccl/copt.h
+++ b/ccl/copt.h
@@ -113,7 +113,8 @@ static int copt_getopt(copt_t *opt, int argc, char *argv[],
if (o->has_arg != copt_no_argument) {
if (argv[opt->_i][j] == '=')
opt->arg = &argv[opt->_i][j + 1];
- else if (argv[opt->_i][j] == '\0' && opt->_i < argc - 1 && (o->has_arg == copt_required_argument || argv[opt->_i + 1][0] != '-'))
+ else if (argv[opt->_i][j] == '\0' && opt->_i < argc - 1 && (o->has_arg == copt_required_argument ||
+ argv[opt->_i + 1][0] != '-'))
opt->arg = argv[++opt->_i];
else if (o->has_arg == copt_required_argument)
optc = ':'; // missing option argument