From 127d04aadfd249ba19d11b8afe8de9f6fbf37782 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 Jul 2022 12:50:15 +0200 Subject: [PATCH] curl: proto2num: make sure obuf is inited Detected by Coverity. CID 1507052. Closes #9096 --- src/tool_paramhlp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;