Skip to content

Commit

Permalink
fixed non-initialized value discovered by coverity issue #84
Browse files Browse the repository at this point in the history
  • Loading branch information
wc-duck committed Jul 24, 2018
1 parent 1de520a commit 0543949
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dl_txt_pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,7 @@ dl_error_t dl_txt_pack( dl_ctx_t dl_ctx, const char* txt_instance, unsigned char
if( out_buffer_size > 0 )
{
dl_data_header header;
memset(&header, 0x0, sizeof(dl_data_header));
header.id = DL_INSTANCE_ID;
header.version = DL_INSTANCE_VERSION;
header.root_instance_type = dl_internal_typeid_of( dl_ctx, root_type );
Expand Down

0 comments on commit 0543949

Please sign in to comment.