[libdvdnav-devel] [Git][videolan/libdvdread][master] dvd_reader: remove write once variable
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Wed Jul 29 06:27:03 UTC 2026
Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdread
Commits:
f6b2ca10 by Steve Lhomme at 2026-07-29T08:26:28+02:00
dvd_reader: remove write once variable
The variable is unused since 21e8964e71bbc743123c458a3f1a4ff544d1ed6b.
- - - - -
1 changed file:
- src/dvd_reader.c
Changes:
=====================================
src/dvd_reader.c
=====================================
@@ -434,7 +434,7 @@ static dvd_reader_t *DVDOpenCommon( void *priv,
dvd_reader_filesystem_h *fs )
{
dvdstat_t fileinfo;
- int ret, have_css, cdir = -1;
+ int ret, have_css;
char *dev_name = NULL;
char *path = NULL, *new_path = NULL, *path_copy = NULL;
dvd_reader_t *ctx = calloc(1, sizeof(*ctx));
@@ -740,8 +740,6 @@ DVDOpen_error:
Log0( ctx, "Could not open %s", path );
free( path );
free( path_copy );
- if ( cdir >= 0 )
- close( cdir );
free( new_path );
return DVDFreeContext( ctx );
}
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/f6b2ca10dc96ece32896b5cc7969b4eb94d18ee0
--
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/f6b2ca10dc96ece32896b5cc7969b4eb94d18ee0
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the libdvdnav-devel
mailing list