Commit 201f6190 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

decomp: add assertion against #2409

parent 227c679c
......@@ -26,6 +26,7 @@
#include <vlc_plugin.h>
#include <vlc_stream.h>
#include <vlc_network.h>
#include <assert.h>
#include <unistd.h>
#ifndef _POSIX_SPAWN
# define _POSIX_SPAWN (-1)
......@@ -182,6 +183,7 @@ static int Read (stream_t *stream, void *buf, unsigned int buflen)
length += Read (stream, ((char *)buf) + length, buflen - length);
return length;
}
assert ((buf != NULL) || (buflen == 0));
length = net_Read (stream, p_sys->read_fd, NULL, buf, buflen, false);
if (length < 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment