diff options
author | Gisle Vanem <gisle.vanem@gmail.com> | 2019-08-20 15:17:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 15:17:16 +0200 |
commit | e7cbf2a0a279dfafd2ec32e024eea2f625f4dc07 (patch) | |
tree | 20413d988aaef6730c3a5e60df659e305bda0b90 /docs/examples/curlx.c | |
parent | 08b99e17df5a2d1d98a2d9ab06eedf7405906105 (diff) | |
download | curl-e7cbf2a0a279dfafd2ec32e024eea2f625f4dc07.tar.gz |
Initialise 'mimetype'
With MSVC's option `/RTCu` (Uninitialized local usage checks), a simple `curlx.exe` fails with a dialogue box.
A simple fix is just to initialise to NULL.
Diffstat (limited to 'docs/examples/curlx.c')
-rw-r--r-- | docs/examples/curlx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/curlx.c b/docs/examples/curlx.c index df4ab3fa2..b4f747cf3 100644 --- a/docs/examples/curlx.c +++ b/docs/examples/curlx.c @@ -277,7 +277,7 @@ int main(int argc, char **argv) int tabLength = 100; char *binaryptr; - char *mimetype; + char *mimetype = NULL; char *mimetypeaccept = NULL; char *contenttype; const char **pp; |