mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
plugin: Use sizeof(*ptr) in cr_lib_load
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
80dcf8d341
commit
394ea23c59
1 changed files with 1 additions and 1 deletions
2
plugin.c
2
plugin.c
|
|
@ -134,7 +134,7 @@ static int cr_lib_load(char *path)
|
|||
ce = NULL;
|
||||
f_fini = dlsym(h, "cr_plugin_fini");
|
||||
if (f_fini) {
|
||||
ce = xmalloc(sizeof(struct cr_plugin_entry));
|
||||
ce = xmalloc(sizeof(*ce));
|
||||
if (ce == NULL)
|
||||
goto nomem;
|
||||
ce->cr_fini = f_fini;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue