Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
461c947d
Commit
461c947d
authored
Feb 14, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only call g_base64_encode if there is data to encode.
parent
7139de79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
xplist.c
src/xplist.c
+5
-3
No files found.
src/xplist.c
View file @
461c947d
...
...
@@ -190,9 +190,11 @@ static void node_to_xml(GNode * node, gpointer xml_struct)
case
PLIST_DATA
:
tag
=
XPLIST_DATA
;
valtmp
=
g_base64_encode
(
node_data
->
buff
,
node_data
->
length
);
val
=
format_string
(
valtmp
,
60
,
xstruct
->
depth
);
g_free
(
valtmp
);
if
(
node_data
->
length
)
{
valtmp
=
g_base64_encode
(
node_data
->
buff
,
node_data
->
length
);
val
=
format_string
(
valtmp
,
60
,
xstruct
->
depth
);
g_free
(
valtmp
);
}
break
;
case
PLIST_ARRAY
:
tag
=
XPLIST_ARRAY
;
...
...
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