Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f62ae12
)
Fix unformat-at-eof bug
00/3600/2
author
Dave Barach
<dave@barachs.net>
Wed, 26 Oct 2016 18:03:20 +0000
(14:03 -0400)
committer
Chris Luke
<chris_luke@comcast.com>
Wed, 26 Oct 2016 20:12:29 +0000
(20:12 +0000)
Change-Id: Id9a64303b1d415b55a3bc0ea1483df6fc2eb5011
Signed-off-by: Dave Barach <dave@barachs.net>
vppinfra/vppinfra/unformat.c
patch
|
blob
|
history
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;