[vlc-devel] commit: rc: no need to strdup the value returned by var_GetString. ( Rémi Duraffort )

git version control git at videolan.org
Wed Jul 15 14:41:32 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Jul 15 11:47:00 2009 +0200| [a9aa82f3c6bf21473a35d99870aa3facd2847182] | committer: Rémi Duraffort 

rc: no need to strdup the value returned by var_GetString.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9aa82f3c6bf21473a35d99870aa3facd2847182
---

 modules/control/rc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/control/rc.c b/modules/control/rc.c
index 8385e00..27cb513 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -1655,7 +1655,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
         }
         else
         {
-            psz_value = strdup( val.psz_string );
+            psz_value = val.psz_string;
         }
 
         if ( var_Change( p_vout, psz_variable,




More information about the vlc-devel mailing list