[libdvdcss-devel] Drop pointless cast of strdup return value
Diego Biurrun
git at videolan.org
Tue Oct 21 21:17:08 CEST 2014
libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Oct 20 11:59:10 2014 +0200| [fe317f76941a21757aa416c8d5fa6e67c0b00cd5] | committer: Diego Biurrun
Drop pointless cast of strdup return value
> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=fe317f76941a21757aa416c8d5fa6e67c0b00cd5
---
src/libdvdcss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 218177b..c848666 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';
More information about the libdvdcss-devel
mailing list