From: Daniel Stenberg Date: Mon, 4 Jul 2022 10:50:15 +0000 (+0200) Subject: curl: proto2num: make sure obuf is inited X-Git-Tag: curl-7_85_0~200 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=127d04aadfd249ba19d11b8afe8de9f6fbf37782;p=thirdparty%2Fcurl.git curl: proto2num: make sure obuf is inited Detected by Coverity. CID 1507052. Closes #9096 --- diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index 188d6a1da5..71c738594d 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -291,7 +291,7 @@ ParameterError proto2num(struct OperationConfig *config, char *buffer; const char *sep = ","; char *token; - char obuf[256]; + char obuf[256] = ""; size_t olen = sizeof(obuf); char *optr; struct sprotos const *pp;