aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-03-08 21:22:27 -0500
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-03-09 08:09:19 +0000
commit31d3a1b3d47c7efe0214b4f9114867e36f709c9a (patch)
tree6bad03b3fdfe4e88f66b94a612f4a4366d963fa5
parent94869593e304b470914f86c07ad45ab4c7acb0d6 (diff)
Initialize write function pointers when copying a new wtap block option.
Issue found by Clang (Assigned value is garbage or undefined). Change-Id: I9a3ab41dd01becbd454af02f2567ea3a2beeba40 Reviewed-on: https://code.wireshark.org/review/14399 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--wiretap/wtap_opttypes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wiretap/wtap_opttypes.c b/wiretap/wtap_opttypes.c
index 3878178d9a..94ff7682fb 100644
--- a/wiretap/wtap_opttypes.c
+++ b/wiretap/wtap_opttypes.c
@@ -194,6 +194,8 @@ void wtap_optionblock_copy_options(wtap_optionblock_t dest_block, wtap_optionblo
reg_optblock.name = src_internal->name;
reg_optblock.description = src_internal->description;
reg_optblock.type = src_internal->type;
+ reg_optblock.write_size_func = src_internal->write_size;
+ reg_optblock.write_func = src_internal->write_data;
reg_optblock.option = src_value->option;
reg_optblock.default_val = src_value->default_val;