Commit 62e11e95 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert [19270]

parent ccdd9cad
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h>
#include <time.h> #include <time.h>
#include <errno.h> #include <errno.h>
...@@ -165,6 +166,7 @@ static void Dump (access_t *access, const uint8_t *buffer, size_t len) ...@@ -165,6 +166,7 @@ static void Dump (access_t *access, const uint8_t *buffer, size_t len)
goto error; goto error;
} }
assert (len > 0);
if (fwrite (buffer, len, 1, stream) != 1) if (fwrite (buffer, len, 1, stream) != 1)
{ {
msg_Err (access, "cannot write to file: %s", strerror (errno)); msg_Err (access, "cannot write to file: %s", strerror (errno));
......
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