Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
13174567
Commit
13174567
authored
Nov 10, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libxml: return NULL for pointers (not 0).
parent
d497debb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/misc/xml/libxml.c
modules/misc/xml/libxml.c
+2
-4
No files found.
modules/misc/xml/libxml.c
View file @
13174567
...
...
@@ -246,8 +246,7 @@ static char *ReaderName( xml_reader_t *p_reader )
const
xmlChar
*
psz_name
=
xmlTextReaderConstName
(
p_reader
->
p_sys
->
p_reader
);
if
(
psz_name
)
return
strdup
(
(
const
char
*
)
psz_name
);
else
return
0
;
return
psz_name
?
strdup
(
(
const
char
*
)
psz_name
)
:
NULL
;
}
static
char
*
ReaderValue
(
xml_reader_t
*
p_reader
)
...
...
@@ -255,8 +254,7 @@ static char *ReaderValue( xml_reader_t *p_reader )
const
xmlChar
*
psz_value
=
xmlTextReaderConstValue
(
p_reader
->
p_sys
->
p_reader
);
if
(
psz_value
)
return
strdup
(
(
const
char
*
)
psz_value
);
else
return
0
;
return
psz_value
?
strdup
(
(
const
char
*
)
psz_value
)
:
NULL
;
}
static
int
ReaderNextAttr
(
xml_reader_t
*
p_reader
)
...
...
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