Skip to content

Commit 82d792a

Browse files
committed
plugin_proxy: change proxydef initialization to use calloc instead of malloc
Changing intialization to use calloc instead of malloc so that emtpy fields are 0 initialized. Specifically for the event_type addition. Signed-off-by: jmccormick7 <jcm258@case.edu>
1 parent 8b70738 commit 82d792a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flb_plugin_proxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ struct flb_plugin_proxy *flb_plugin_proxy_create(const char *dso_path, int type,
621621
return NULL;
622622
}
623623

624-
proxy->def = flb_malloc(sizeof(struct flb_plugin_proxy_def));
624+
proxy->def = flb_calloc(1, sizeof(struct flb_plugin_proxy_def));
625625
if (!proxy->def) {
626626
flb_errno();
627627
dlclose(handle);

0 commit comments

Comments
 (0)