Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
15dec466
Commit
15dec466
authored
Sep 17, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UniXML: fix empty property handle in getPropUtf8
parent
92a22c64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
UniXML.cc
src/Various/UniXML.cc
+7
-3
No files found.
src/Various/UniXML.cc
View file @
15dec466
...
...
@@ -211,7 +211,10 @@ string UniXML::getProp(const xmlNode* node, const string name)
string
UniXML
::
getPropUtf8
(
const
xmlNode
*
node
,
const
string
name
)
{
return
(
const
char
*
)
::
xmlGetProp
((
xmlNode
*
)
node
,
(
const
xmlChar
*
)
name
.
c_str
());
const
char
*
text
=
(
const
char
*
)
::
xmlGetProp
((
xmlNode
*
)
node
,
(
const
xmlChar
*
)
name
.
c_str
());
if
(
text
==
NULL
)
return
""
;
return
text
;
}
int
UniXML
::
getIntProp
(
const
xmlNode
*
node
,
const
string
name
)
...
...
@@ -320,11 +323,12 @@ xmlNode* UniXML::findNodeUtf8(xmlNode* node, const string searchnode, const stri
{
if
(
searchnode
==
(
const
char
*
)
node
->
name
)
{
/* name , . , ģ */
if
(
name
.
empty
()
)
return
node
;
if
(
name
==
getPropUtf8
(
node
,
"name"
)
)
return
node
;
if
(
name
.
empty
()
)
return
node
;
}
xmlNode
*
nodeFound
=
findNodeUtf8
(
node
->
children
,
searchnode
,
name
);
if
(
nodeFound
!=
NULL
)
...
...
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