From: RĂ©mi Denis-Courmont Date: Sun, 11 Mar 2007 17:13:55 +0000 (+0000) Subject: DO NOT F***ING REMOVE my asserts() X-Git-Tag: 0.9.0-test0~8151 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a65a62289c22ad0c988d833eb25e3a616b524aba;p=vlc DO NOT F***ING REMOVE my asserts() (unless the assertion is false, which is not the case here) --- diff --git a/modules/access_filter/dump.c b/modules/access_filter/dump.c index b22c7f433c..38139d0adf 100644 --- a/modules/access_filter/dump.c +++ b/modules/access_filter/dump.c @@ -25,6 +25,7 @@ #include #include +#include #include #include @@ -165,6 +166,7 @@ static void Dump (access_t *access, const uint8_t *buffer, size_t len) goto error; } + assert (len > 0); if (fwrite (buffer, len, 1, stream) != 1) { msg_Err (access, "cannot write to file: %s", strerror (errno));