Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix bug with decoding empty message types. Add test for the same.
[apps/agl-service-can-low-level.git]
/
tests
/
test_decode2.c
diff --git
a/tests/test_decode2.c
b/tests/test_decode2.c
index
762b2b3
..
2142977
100644
(file)
--- a/
tests/test_decode2.c
+++ b/
tests/test_decode2.c
@@
-59,13
+59,6
@@
bool callback(pb_istream_t *stream, uint8_t *buf, size_t count)
FILE *file = (FILE*)stream->state;
bool status;
- if (buf == NULL)
- {
- /* Skipping data */
- while (count-- && fgetc(file) != EOF);
- return count == 0;
- }
-
status = (fread(buf, 1, count, file) == count);
if (feof(file))