[libdvdcss-devel] [PATCH 17/25] Drop pointless cast of strdup return value

Diego Biurrun diego at biurrun.de
Mon Oct 20 11:59:10 CEST 2014


---
 src/libdvdcss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index d357e59..4e77f48 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -178,7 +178,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
     dvdcss->i_raw_fd = -1;
 #endif
     dvdcss->p_titles = NULL;
-    dvdcss->psz_device = (char *)strdup( psz_target );
+    dvdcss->psz_device = strdup( psz_target );
     dvdcss->psz_error = "no error";
     dvdcss->i_method = DVDCSS_METHOD_KEY;
     dvdcss->psz_cachefile[0] = '\0';
-- 
1.9.1



More information about the libdvdcss-devel mailing list