Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix unformat-at-eof bug
[vpp.git]
/
vppinfra
/
vppinfra
/
unformat.c
diff --git
a/vppinfra/vppinfra/unformat.c
b/vppinfra/vppinfra/unformat.c
index
22d282a
..
ac8b7dd
100644
(file)
--- a/
vppinfra/vppinfra/unformat.c
+++ b/
vppinfra/vppinfra/unformat.c
@@
-988,7
+988,7
@@
unformat_user (unformat_input_t * input, unformat_function_t * func, ...)
result = func (input, &va);
va_end (va);
- if (!result)
+ if (!result
&& input->index != UNFORMAT_END_OF_INPUT
)
input->index = input->buffer_marks[l];
_vec_len (input->buffer_marks) = l;