Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
6b141c54
Commit
6b141c54
authored
Dec 28, 2004
by
Andre Pang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix CMML codec on systems where strcmp(1) dies if you give it a NULL pointer (such as Windows)
parent
79053042
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/codec/cmml/xtag.c
modules/codec/cmml/xtag.c
+4
-4
No files found.
modules/codec/cmml/xtag.c
View file @
6b141c54
...
...
@@ -381,7 +381,7 @@ xtag_parse_tag (XTagParser * parser)
xtag_assert_and_pass
(
parser
,
X_SLASH
);
name
=
xtag_slurp_to
(
parser
,
X_WHITESPACE
|
X_CLOSETAG
,
X_NONE
);
if
(
name
)
{
if
(
strcmp
(
name
,
tag
->
name
))
{
if
(
name
&&
tag
->
name
&&
strcmp
(
name
,
tag
->
name
))
{
#ifdef XTAG_DEBUG
printf
(
"got %s expected %s
\n
"
,
name
,
tag
->
name
);
#endif
...
...
@@ -525,7 +525,7 @@ xtag_get_attribute (XTag * xtag, char * attribute)
for
(
l
=
xtag
->
attributes
;
l
;
l
=
l
->
next
)
{
if
((
attr
=
(
XAttribute
*
)
l
->
data
)
!=
NULL
)
{
if
(
!
strcmp
(
attr
->
name
,
attribute
))
if
(
attr
->
name
&&
attribute
&&
!
strcmp
(
attr
->
name
,
attribute
))
return
attr
->
value
;
}
}
...
...
@@ -551,7 +551,7 @@ xtag_first_child (XTag * xtag, char * name)
for
(;
l
;
l
=
l
->
next
)
{
child
=
(
XTag
*
)
l
->
data
;
if
(
!
strcmp
(
child
->
name
,
name
))
{
if
(
child
->
name
&&
name
&&
!
strcmp
(
child
->
name
,
name
))
{
xtag
->
current_child
=
l
;
return
child
;
}
...
...
@@ -584,7 +584,7 @@ xtag_next_child (XTag * xtag, char * name)
for
(;
l
;
l
=
l
->
next
)
{
child
=
(
XTag
*
)
l
->
data
;
if
(
!
strcmp
(
child
->
name
,
name
))
{
if
(
child
->
name
&&
name
&&
!
strcmp
(
child
->
name
,
name
))
{
xtag
->
current_child
=
l
;
return
child
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment