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

git version control git at videolan.org
Thu Jul 16 12:01:20 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Wed Jul 15 11:47:00 2009 +0200| [2c74bfc0837eb02601a2dba101e3d7ad69cfca02] | committer: Rémi Duraffort 

rc: no need to strdup the value returned by var_GetString.
(cherry picked from commit a9aa82f3c6bf21473a35d99870aa3facd2847182)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 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 8789273..88401e8 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -1750,7 +1750,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