Commit 394ea23c authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

plugin: Use sizeof(*ptr) in cr_lib_load

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 80dcf8d3
...@@ -134,7 +134,7 @@ static int cr_lib_load(char *path) ...@@ -134,7 +134,7 @@ static int cr_lib_load(char *path)
ce = NULL; ce = NULL;
f_fini = dlsym(h, "cr_plugin_fini"); f_fini = dlsym(h, "cr_plugin_fini");
if (f_fini) { if (f_fini) {
ce = xmalloc(sizeof(struct cr_plugin_entry)); ce = xmalloc(sizeof(*ce));
if (ce == NULL) if (ce == NULL)
goto nomem; goto nomem;
ce->cr_fini = f_fini; ce->cr_fini = f_fini;
......
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