Code Review
/
apps
/
low-level-can-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Documenting and improving stream behaviour
[apps/low-level-can-service.git]
/
pb_decode.c
diff --git
a/pb_decode.c
b/pb_decode.c
index
df05331
..
e2888f2
100644
(file)
--- a/
pb_decode.c
+++ b/
pb_decode.c
@@
-349,7
+349,7
@@
bool pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struc
uint32_t temp;
int tag, wire_type;
if (!pb_decode_varint32(stream, &temp))
uint32_t temp;
int tag, wire_type;
if (!pb_decode_varint32(stream, &temp))
- return
false;
+ return
stream->bytes_left == 0; /* Was it EOF? */
tag = temp >> 3;
wire_type = temp & 7;
tag = temp >> 3;
wire_type = temp & 7;