summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-02-26 17:22:11 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-02-26 17:22:11 +0100
commitfcf71803f4220e47c7932cc216afd9140409b959 (patch)
treecb7732acf72d82b63e4fba9f1292891fd40f0633
parent6002e2b38d8e2fbdf12035c024c828808fbe8a6e (diff)
downloadcurl-bagder/tool-without-args.tar.gz
fixup make it NULL instead to please unicode builds on windowsbagder/tool-without-args
-rw-r--r--src/tool_operate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 92244b5b2..f36f3ce53 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -2574,7 +2574,7 @@ static CURLcode run_all_transfers(struct GlobalConfig *global,
CURLcode operate(struct GlobalConfig *global, int argc, argv_item_t argv[])
{
CURLcode result = CURLE_OK;
- char *first_arg = curlx_convert_tchar_to_UTF8(argc > 1 ? argv[1] : "");
+ char *first_arg = argc > 1 ? curlx_convert_tchar_to_UTF8(argv[1]) : NULL;
/* Setup proper locale from environment */
#ifdef HAVE_SETLOCALE