[vlc-commits] input: var: use intermediate variable
Thomas Guillem
git at videolan.org
Tue Jul 24 09:23:30 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jul 24 09:22:00 2018 +0200| [62a9967de3be6bc7dd82d37f86c90b102dd9a6c8] | committer: Thomas Guillem
input: var: use intermediate variable
Fixes CID #1438097 (false positive)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=62a9967de3be6bc7dd82d37f86c90b102dd9a6c8
---
src/input/var.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/input/var.c b/src/input/var.c
index 43c50fd2e2..02a5770e5d 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -230,11 +230,11 @@ static void UpdateBookmarksOption( input_thread_t *p_input )
{
*end = vstr.ptr;
item->i_options = end - orig_beg + 1;
- vlc_mutex_unlock( &priv->p_item->lock );
+ vlc_mutex_unlock( &item->lock );
}
else /* nothing removed, add the usual way */
{
- vlc_mutex_unlock( &priv->p_item->lock );
+ vlc_mutex_unlock( &item->lock );
input_item_AddOption( item, vstr.ptr, VLC_INPUT_OPTION_UNIQUE );
free( vstr.ptr );
}
More information about the vlc-commits
mailing list