From e7cbf2a0a279dfafd2ec32e024eea2f625f4dc07 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Tue, 20 Aug 2019 15:17:16 +0200 Subject: 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. --- docs/examples/curlx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1