[vlc-commits] [Git][videolan/vlc][3.0.x] lib: fix operator precedence in libvlc_media_list_path_append

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Apr 30 11:00:46 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
3ce07363 by Martin Finkel at 2026-04-30T10:49:02+00:00
lib: fix operator precedence in libvlc_media_list_path_append

(cherry picked from commit 9cc6e9696964eb14b6ae2005fc87420e50f94513)

- - - - -


1 changed file:

- lib/media_list_path.h


Changes:

=====================================
lib/media_list_path.h
=====================================
@@ -81,8 +81,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/3ce073637bd460ac399890ce1cfea9d862f37224

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




More information about the vlc-commits mailing list