[vlc-commits] Fix incorrect return value and leak
Rémi Denis-Courmont
git at videolan.org
Sun Feb 13 12:43:12 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 13 13:42:29 2011 +0200| [7e44b4e1bc39cfa7bf5b3fc99c15baabdd1e5057] | committer: Rémi Denis-Courmont
Fix incorrect return value and leak
(Beats me why GCC did not warn about this one)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7e44b4e1bc39cfa7bf5b3fc99c15baabdd1e5057
---
src/config/keys.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/config/keys.c b/src/config/keys.c
index cc82eba..05e7bb8 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -450,7 +450,7 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
libvlc->p_hotkeys = as->keys;
var_AddCallback (libvlc, "key-pressed", vlc_key_to_action, as);
- return VLC_SUCCESS;
+ return as;
}
/**
More information about the vlc-commits
mailing list