[Mp4h-devel]CVS: mp4h/src builtin.c,1.104,1.105
Brought to you by:
barbier
|
From: Denis B. <ba...@us...> - 2002-01-11 13:39:30
|
Update of /cvsroot/mp4h/mp4h/src
In directory usw-pr-cvs1:/tmp/cvs-serv3518/src
Modified Files:
builtin.c
Log Message:
*) Fix <attributes-extract> and <attributes-remove> tags (11-Jan-2002):
Valueless attributes in these tags crashed mp4h.
[Anders Dinsen]
Index: builtin.c
===================================================================
RCS file: /cvsroot/mp4h/mp4h/src/builtin.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- builtin.c 2001/10/25 22:08:58 1.104
+++ builtin.c 2002/01/11 13:39:27 1.105
@@ -904,8 +904,11 @@
match_ptr[j*2+1] - match_ptr[j*2]);
}
- obstack_1grow (obs, '=');
- obstack_grow (obs, cp+1, strlen (cp+1));
+ if (cp)
+ {
+ obstack_1grow (obs, '=');
+ obstack_grow (obs, cp+1, strlen (cp+1));
+ }
obstack_1grow (obs, CHAR_EGROUP);
}
else if (rc == PCRE_ERROR_NOMATCH && !match)
|