summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gisle.vanem@gmail.com>2019-08-20 15:17:16 +0200
committerGitHub <noreply@github.com>2019-08-20 15:17:16 +0200
commite7cbf2a0a279dfafd2ec32e024eea2f625f4dc07 (patch)
tree20413d988aaef6730c3a5e60df659e305bda0b90
parent08b99e17df5a2d1d98a2d9ab06eedf7405906105 (diff)
downloadcurl-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.
-rw-r--r--docs/examples/curlx.c2
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;