Discussion:
[libdvdcss-devel] Drop pointless cast of strdup return value
Diego Biurrun
2014-10-20 17:21:39 UTC
Permalink
libdvdcss | branch: master | Diego Biurrun <***@biurrun.de> | Mon Oct 20 11:59:10 2014 +0200| [13f47ca41f55bd1aca37eb2f6f9e0450e0289230] | committer: Jean-Baptiste Kempf

Drop pointless cast of strdup return value
http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=13f47ca41f55bd1aca37eb2f6f9e0450e0289230
---

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

diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 1ff06ed..d01169c 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';
Diego Biurrun
2014-10-21 19:17:08 UTC
Permalink
libdvdcss | branch: master | Diego Biurrun <***@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';

Loading...