[vlc-devel] commit: Remove not used allocation added in [ bc650c59ca6d2edbf555dc0cec11091f274b42f5] ( Rafaël Carré )

git version control git at videolan.org
Tue May 20 15:16:14 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue May 20 13:46:52 2008 +0200| [bc1649c4f3c0de31b016fcf6fac1a7b9ce78b73f]

Remove not used allocation added in [bc650c59ca6d2edbf555dc0cec11091f274b42f5]

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

 src/stream_output/sdp.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/stream_output/sdp.c b/src/stream_output/sdp.c
index 826c259..6125323 100644
--- a/src/stream_output/sdp.c
+++ b/src/stream_output/sdp.c
@@ -270,10 +270,6 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref,
     char varname[cfglen + sizeof ("description")], *subvar = varname + cfglen;
     strcpy (varname, cfgpref);
 
-    session_descriptor_t *p_session = calloc (1, sizeof (*p_session));
-    if (p_session == NULL)
-        return NULL;
-
     strcpy (subvar, "name");
     char *name = var_GetNonEmptyString (obj, varname);
     strcpy (subvar, "description");




More information about the vlc-devel mailing list