[vlc-commits] [Git][videolan/vlc][master] lib: fix operator precedence in libvlc_media_list_path_append

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Apr 10 07:28:58 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
9cc6e969 by Martin Finkel at 2026-04-10T07:14:40+00:00
lib: fix operator precedence in libvlc_media_list_path_append

- - - - -


1 changed file:

- lib/media_list_path.h


Changes:

=====================================
lib/media_list_path.h
=====================================
@@ -80,8 +80,8 @@ static inline void libvlc_media_list_path_append( libvlc_media_list_path_t * p_p
 {
     int old_depth = libvlc_media_list_path_depth( *p_path );
     *p_path = xrealloc( *p_path, sizeof(int)*(old_depth+2));
-    *p_path[old_depth] = index;
-    *p_path[old_depth+1] = -1;
+    (*p_path)[old_depth] = index;
+    (*p_path)[old_depth+1] = -1;
 }
 
 /**************************************************************************



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9cc6e9696964eb14b6ae2005fc87420e50f94513

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9cc6e9696964eb14b6ae2005fc87420e50f94513
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list