summaryrefslogtreecommitdiff
path: root/src/tool_setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-30 10:55:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-03-30 11:21:32 +0200
commite7f0c31446c4f1a38198f9db6fd16e60d7b9c52a (patch)
treeae5774184c3bd511ae00b2b8584aa3da6f8aa625 /src/tool_setopt.c
parent99b126113b2f35c5b7fac3efb006213ad13666ed (diff)
downloadcurl-e7f0c31446c4f1a38198f9db6fd16e60d7b9c52a.tar.gz
cleanup: insert newline after if() conditionbagder/checksrc-onelinecondition
Our code style mandates we put the conditional block on a separate line. These mistakes were detected by the updated checksrc.
Diffstat (limited to 'src/tool_setopt.c')
-rw-r--r--src/tool_setopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c
index f3b7a9c83..f244ba490 100644
--- a/src/tool_setopt.c
+++ b/src/tool_setopt.c
@@ -285,7 +285,8 @@ CURLcode tool_setopt_enum(CURL *curl, struct GlobalConfig *config,
/* we only use this for real if --libcurl was used */
const NameValue *nv = NULL;
for(nv = nvlist; nv->name; nv++) {
- if(nv->value == lval) break; /* found it */
+ if(nv->value == lval)
+ break; /* found it */
}
if(! nv->name) {
/* If no definition was found, output an explicit value.