rc: no need to strdup the value returned by var_GetString.
authorRémi Duraffort <ivoire@videolan.org>
Wed, 15 Jul 2009 09:47:00 +0000 (11:47 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 15 Jul 2009 09:47:00 +0000 (11:47 +0200)
modules/control/rc.c

index 8385e00..27cb513 100644 (file)
@@ -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,