diff options
author | Gisle Vanem <gisle.vanem@gmail.com> | 2019-08-20 15:36:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 15:36:36 +0200 |
commit | c27cdc62c5f3beb0ed88ef0d9bfbd2848254a5a6 (patch) | |
tree | b5f065de95eae2cc39604c39e5d6e4a300fe7b66 | |
parent | e7cbf2a0a279dfafd2ec32e024eea2f625f4dc07 (diff) | |
download | curl-gvanem-curlx.tar.gz |
[docs/examples/curlx]: "-p12 arg" is required toogvanem-curlx
With MSVC's `/RTCu` option and no `-p12 arg` on the cmd-line, the same fatal dialogue box is triggered when
```c
p12bio = BIO_new_file(p.p12file, "rb");
```
is called.
-rw-r--r-- | docs/examples/curlx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/curlx.c b/docs/examples/curlx.c index b4f747cf3..830207970 100644 --- a/docs/examples/curlx.c +++ b/docs/examples/curlx.c @@ -294,7 +294,7 @@ int main(int argc, char **argv) binaryptr = malloc(tabLength); - p.verbose = 0; + memset(&p, '\0', sizeof(p)); p.errorbio = BIO_new_fp(stderr, BIO_NOCLOSE); curl_global_init(CURL_GLOBAL_DEFAULT); @@ -372,7 +372,7 @@ int main(int argc, char **argv) args++; } - if(mimetype == NULL || mimetypeaccept == NULL) + if(mimetype == NULL || mimetypeaccept == NULL || p.p12file == NULL) badarg = 1; if(badarg) { |