Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Apr 14, 2020
1 parent b90efc7 commit 63eb777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/internal/iutest_string.hpp
Expand Up @@ -144,7 +144,7 @@ int iu_vsnprintf(char* dst, size_t size, const char* format, va_list va) IUTEST_

inline int iu_vsnprintf(char* dst, size_t size, const char* format, va_list va)
{
char buffer[4096];
char buffer[4096] = {0};
char* write_buffer = dst != NULL && size >= 4096 ? dst : buffer;
const int ret = vsprintf(write_buffer, format, va);
if( dst != NULL )
Expand Down

0 comments on commit 63eb777

Please sign in to comment.