git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e196e6e
)
Submodules do not inherit shortcuts anymore (fix: #2696)
author
Rémi Denis-Courmont
<remi@remlab.net>
Sun, 26 Apr 2009 16:16:58 +0000
(19:16 +0300)
committer
Rémi Denis-Courmont
<remi@remlab.net>
Sun, 26 Apr 2009 16:39:42 +0000
(19:39 +0300)
src/modules/entry.c
patch
|
blob
|
history
diff --git
a/src/modules/entry.c
b/src/modules/entry.c
index
4fb35a6
..
647bf9d
100644
(file)
--- a/
src/modules/entry.c
+++ b/
src/modules/entry.c
@@
-121,8
+121,9
@@
module_t *vlc_submodule_create (module_t *module)
module->submodule_count++;
/* Muahahaha! Heritage! Polymorphism! Ugliness!! */
- memcpy (submodule->pp_shortcuts, module->pp_shortcuts,
- sizeof (submodule->pp_shortcuts));
+ submodule->pp_shortcuts[0] = module->pp_shortcuts[0]; /* object name */
+ for (unsigned i = 1; i < MODULE_SHORTCUT_MAX; i++)
+ submodule->pp_shortcuts[i] = NULL;
submodule->psz_object_name = strdup( module->psz_object_name );
submodule->psz_shortname = module->psz_shortname;