mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
tests & fix for 0 length modifier value
This commit is contained in:
parent
e7a4df6180
commit
c4340bae9f
6 changed files with 25 additions and 2 deletions
7
test/packets/00-length-no-value
Normal file
7
test/packets/00-length-no-value
Normal file
|
@ -0,0 +1,7 @@
|
|||
:_source psyc://foo.example.com/
|
||||
:_target psyc://bar.example.com/
|
||||
|
||||
:_foo 0
|
||||
_message_private
|
||||
OHAI
|
||||
|
|
7
test/packets/00-no-value
Normal file
7
test/packets/00-no-value
Normal file
|
@ -0,0 +1,7 @@
|
|||
:_source psyc://foo.example.com/
|
||||
:_target psyc://bar.example.com/
|
||||
|
||||
:_foo
|
||||
_message_private
|
||||
OHAI
|
||||
|
|
|
@ -234,7 +234,7 @@ int main (int argc, char **argv)
|
|||
if (ret == PSYC_PARSE_ENTITY)
|
||||
{
|
||||
packets[i].entity.lines++;
|
||||
mod->flag = psyc_getParseValueLength(&parsers[i]) ?
|
||||
mod->flag = psyc_isParseValueLengthFound(&parsers[i]) ?
|
||||
PSYC_MODIFIER_NEED_LENGTH : PSYC_MODIFIER_NO_LENGTH;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue