Make buffer static.
@@ -58,7 +58,7 @@ static char *config_property = "\
\"precedence\": 1\
}\
}";
-unsigned char *buffer = NULL;
+static unsigned char *buffer = NULL;
struct stat_flow {
uint32_t rcv_bytes;
@@ -321,6 +321,7 @@ main(int argc, char *argv[])
printf("%d flows - requesting: %s\n", num_flows, request);
buffer = malloc(config_rcv_buffer_size);
+
if ((ctx = neat_init_ctx()) == NULL) {
fprintf(stderr, "could not initialize context\n");
result = EXIT_FAILURE;
