Fix some issues reported by the static analysis

This commit is contained in:
Felipe Zimmerle
2016-03-18 18:52:48 -03:00
parent 28008be616
commit c43391072c
5 changed files with 34 additions and 34 deletions

View File

@@ -116,15 +116,13 @@ using namespace modsecurity;
int main(int argc, char** argv) {
size_t count;
uint8_t buf[128];
ssize_t read_bytes;
uint8_t buf[128];
std::string lastString;
while (__AFL_LOOP(1000)) {
ssize_t read_bytes;
// (re-) initialize the library and read new input
read_bytes = -1;
memset(buf, 0, 128);
read_bytes = read(STDIN_FILENO, buf, 128);