aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_decode_callbacks.c
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-04-14 09:26:42 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-04-14 09:26:42 +0300
commit9939910833a9289b5913eff29f951195e7bc61c6 (patch)
tree3455554408cbfec6503f92935732201571c7311f /tests/test_decode_callbacks.c
parent6a022985845a0a50b32b7c1fb22f9aee1f675825 (diff)
Fix bug with empty strings in repeated string callbacks.
Fix suggested by Henrik Carlgren. Added also unit test for the bug. Update issue 73 Status: FixedInGit
Diffstat (limited to 'tests/test_decode_callbacks.c')
-rw-r--r--tests/test_decode_callbacks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_decode_callbacks.c b/tests/test_decode_callbacks.c
index 7ce4ec0b..b5056923 100644
--- a/tests/test_decode_callbacks.c
+++ b/tests/test_decode_callbacks.c
@@ -83,6 +83,8 @@ int main()
testmessage.fixed32value.arg = "fixed32value: %ld\n";
testmessage.fixed64value.funcs.decode = &print_fixed64;
testmessage.fixed64value.arg = "fixed64value: %lld\n";
+ testmessage.repeatedstring.funcs.decode = &print_string;
+ testmessage.repeatedstring.arg = "repeatedstring: \"%s\"\n";
if (!pb_decode(&stream, TestMessage_fields, &testmessage))
return 1;