diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-11-09 19:14:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 19:14:48 +0200 |
commit | 3d778524ca581174c288135fd6c1ea556d88dd77 (patch) | |
tree | 993cdea7fcb89cdc30ed8d072c08ebe9921dc5d0 /exporting/init_connectors.c | |
parent | 5fcfe4eb2971af24c466f2460f31de6e867a6ae0 (diff) |
Fix coverity issues (#10216)
Diffstat (limited to 'exporting/init_connectors.c')
-rw-r--r-- | exporting/init_connectors.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exporting/init_connectors.c b/exporting/init_connectors.c index 57ac030d9a..6aff263549 100644 --- a/exporting/init_connectors.c +++ b/exporting/init_connectors.c @@ -115,6 +115,12 @@ void simple_connector_init(struct instance *instance) struct simple_connector_data *connector_specific_data = (struct simple_connector_data *)instance->connector_specific_data; + if (connector_specific_data->first_buffer) + return; + + connector_specific_data->header = buffer_create(0); + connector_specific_data->buffer = buffer_create(0); + // create a ring buffer struct simple_connector_buffer *first_buffer = NULL; |