From 8f6e8ef56b0f29b2fefbb18d25a7adb5491a2132 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 26 Jul 2013 16:47:48 +0200 Subject: [PATCH] rtspreal: Ensure output value has an assigned value In the case where this macro was used, that dest was != NULL but that the strncmp failed, we would end up with dest_len being undefined. --- gst/realmedia/rtspreal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/realmedia/rtspreal.c b/gst/realmedia/rtspreal.c index c63ed28520..c4363b8678 100644 --- a/gst/realmedia/rtspreal.c +++ b/gst/realmedia/rtspreal.c @@ -207,9 +207,9 @@ G_STMT_START { \ #define READ_BUFFER_GEN(src, func, name, dest, dest_len) \ G_STMT_START { \ dest = (gchar *)func (src, name); \ + dest_len = 0; \ if (!dest) { \ dest = (char *) ""; \ - dest_len = 0; \ } \ else if (!strncmp (dest, "buffer;\"", 8)) { \ dest += 8; \