mirror of https://github.com/mpv-player/mpv
allow empty assignments, necessary for some weird servers...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13204 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8a7b7cdb73
commit
5dda0ad913
|
@ -550,6 +550,13 @@ static void asmrp_assignment (asmrp_t *p) {
|
|||
printf ("assignment\n");
|
||||
#endif
|
||||
|
||||
if (p->sym == ASMRP_SYM_COMMA || p->sym == ASMRP_SYM_SEMICOLON) {
|
||||
#ifdef LOG
|
||||
printf ("empty assignment\n");
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
if (p->sym != ASMRP_SYM_ID) {
|
||||
printf ("error: identifier expected\n");
|
||||
abort ();
|
||||
|
|
Loading…
Reference in New Issue