aboutsummaryrefslogtreecommitdiffstats
path: root/pb_decode.c
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-07-18 21:09:13 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-07-18 21:09:13 +0300
commit10b5da12dc9757b345a9d6f9daeef9098731ff69 (patch)
treed9c423c06424f15bbc30bab205418ae5495bc5e1 /pb_decode.c
parentd8bddabb8372d1c684d7cd7cf4bb04131acb9ff1 (diff)
Fixed a few compiler warnings, added check.
Main code is now compiled (for tests) with -pedantic -Wextra. The test programs are not as strictly bound, but this should improve the chances that atleast the core library compiles with most compilers without warnings.
Diffstat (limited to 'pb_decode.c')
-rw-r--r--pb_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pb_decode.c b/pb_decode.c
index 458d5f1e..e183be7d 100644
--- a/pb_decode.c
+++ b/pb_decode.c
@@ -409,7 +409,7 @@ static void pb_message_set_to_defaults(const pb_field_t fields[], void *dest_str
bool checkreturn pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct)
{
- uint8_t fields_seen[(PB_MAX_REQUIRED_FIELDS + 7) / 8] = {}; /* Used to check for required fields */
+ uint8_t fields_seen[(PB_MAX_REQUIRED_FIELDS + 7) / 8] = {0}; /* Used to check for required fields */
pb_field_iterator_t iter;
pb_message_set_to_defaults(fields, dest_struct);