diff options
author | Edward Hervey <edward@collabora.com> | 2013-07-26 16:47:48 +0200 |
---|---|---|
committer | Edward Hervey <edward@collabora.com> | 2013-07-26 16:47:48 +0200 |
commit | 8f6e8ef56b0f29b2fefbb18d25a7adb5491a2132 (patch) | |
tree | c87f8189bb5f44990f1e764ad0171b42d7ca1cbe /gst | |
parent | 767005d8c05a9c5afad95ff868ed8b3952e4b38b (diff) |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/realmedia/rtspreal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/realmedia/rtspreal.c b/gst/realmedia/rtspreal.c index c63ed285..c4363b86 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; \ |