1
0
Fork 0
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:
tg(x) 2011-05-04 17:59:51 +02:00
parent e7a4df6180
commit c4340bae9f
6 changed files with 25 additions and 2 deletions

View 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
View file

@ -0,0 +1,7 @@
:_source psyc://foo.example.com/
:_target psyc://bar.example.com/
:_foo
_message_private
OHAI
|

View file

@ -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;