curl: proto2num: make sure obuf is inited
Detected by Coverity. CID 1507052. Closes #9096
This commit is contained in:
parent
c5f3c47cbb
commit
127d04aadf
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user