summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/aws-c-common/source/command_line_parser.c
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/restricted/aws/aws-c-common/source/command_line_parser.c
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/restricted/aws/aws-c-common/source/command_line_parser.c')
-rw-r--r--contrib/restricted/aws/aws-c-common/source/command_line_parser.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/restricted/aws/aws-c-common/source/command_line_parser.c b/contrib/restricted/aws/aws-c-common/source/command_line_parser.c
index ccbe6d18208..91a37692360 100644
--- a/contrib/restricted/aws/aws-c-common/source/command_line_parser.c
+++ b/contrib/restricted/aws/aws-c-common/source/command_line_parser.c
@@ -1,6 +1,6 @@
-/**
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
- * SPDX-License-Identifier: Apache-2.0.
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/common/command_line_parser.h>
@@ -85,17 +85,17 @@ int aws_cli_getopt_long(
if (option) {
bool has_arg = false;
- char *opt_value = memchr(optstring, option->val, strlen(optstring));
- if (!opt_value) {
- return '?';
- }
-
- if (opt_value[1] == ':') {
- has_arg = true;
+ char *opt_value = memchr(optstring, option->val, strlen(optstring));
+ if (!opt_value) {
+ return '?';
}
+ if (opt_value[1] == ':') {
+ has_arg = true;
+ }
+
if (has_arg) {
- if (aws_cli_optind >= argc) {
+ if (aws_cli_optind >= argc) {
return '?';
}