Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
dfece178
Commit
dfece178
authored
Sep 27, 2014
by
Bartosz J
Committed by
Alejandro Mery
Sep 27, 2014
Browse files
Fix issue #25: - Omit SCRIPT_VALUE_TYPE_NULL entries with no key name
parent
22a07bc3
Changes
1
Show whitespace changes
Inline
Side-by-side
script_bin.c
View file @
dfece178
...
...
@@ -290,8 +290,11 @@ static int decompile_section(void *bin, size_t bin_size,
goto
malloc_error
;
};
break
;
case
SCRIPT_VALUE_TYPE_NULL
:
if
(
!
script_null_entry_new
(
s
,
entry
->
name
))
if
(
!*
entry
->
name
)
{
pr_err
(
"%s: empty entry in section: %s
\n
"
,
filename
,
section
->
name
);
}
else
if
(
!
script_null_entry_new
(
s
,
entry
->
name
))
{
goto
malloc_error
;
}
break
;
default:
pr_err
(
"%s: %s.%s: unknown type %d
\n
"
,
...
...
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