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
66d2bb65
Commit
66d2bb65
authored
May 26, 2020
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make plist_bool_val_is_true() return 0 instead of -1 if node is NULL or not a PLIST_BOOLEAN
parent
ea5b54b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plist.c
src/plist.c
+1
-1
No files found.
src/plist.c
View file @
66d2bb65
...
...
@@ -1189,7 +1189,7 @@ PLIST_API void plist_set_date_val(plist_t node, int32_t sec, int32_t usec)
PLIST_API
int
plist_bool_val_is_true
(
plist_t
boolnode
)
{
if
(
!
PLIST_IS_BOOLEAN
(
boolnode
))
{
return
-
1
;
return
0
;
}
uint8_t
bv
=
0
;
plist_get_bool_val
(
boolnode
,
&
bv
);
...
...
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