mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 08:16:58 +08:00
inih: silence static analysis error
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
@@ -295,6 +295,10 @@ static char* ini_reader_string(char* str, int num, void* stream) {
|
||||
char* strp = str;
|
||||
char c;
|
||||
|
||||
#ifdef __clang_analyzer__
|
||||
memset(str, '\0', num);
|
||||
#endif
|
||||
|
||||
if (ctx_num_left == 0 || num < 2)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user