mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
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:
parent
767005d8c0
commit
8f6e8ef56b
1 changed files with 1 additions and 1 deletions
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue