Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
32b1c86c
Commit
32b1c86c
authored
Jul 19, 2013
by
ivoire
Browse files
Fix sizeof mismatch (cid #1049623 and #1049622)
parent
0c24ccc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/entry.c
View file @
32b1c86c
...
...
@@ -176,7 +176,7 @@ static int vlc_plugin_setter (void *plugin, void *tgt, int propid, ...)
break
;
}
/* Inheritance. Ugly!! */
submodule
->
pp_shortcuts
=
xmalloc
(
sizeof
(
char
**
));
submodule
->
pp_shortcuts
=
xmalloc
(
sizeof
(
*
submodule
->
pp_shortcuts
));
submodule
->
pp_shortcuts
[
0
]
=
strdup_null
(
module
->
pp_shortcuts
[
0
]);
submodule
->
i_shortcuts
=
1
;
/* object name */
...
...
@@ -251,7 +251,7 @@ static int vlc_plugin_setter (void *plugin, void *tgt, int propid, ...)
const
char
*
value
=
va_arg
(
ap
,
const
char
*
);
assert
(
module
->
i_shortcuts
==
0
);
module
->
pp_shortcuts
=
malloc
(
sizeof
(
char
**
)
);
module
->
pp_shortcuts
=
malloc
(
sizeof
(
*
module
->
pp_shortcuts
)
);
module
->
pp_shortcuts
[
0
]
=
strdup
(
value
);
module
->
i_shortcuts
=
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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