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.
This commit is contained in:
Edward Hervey 2013-07-26 16:47:48 +02:00
parent 767005d8c0
commit 8f6e8ef56b

View file

@ -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; \