2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

restore: initialize uninitialized pointer

Closes #115
Reported-by: Coverity
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Tycho Andersen 2016-02-19 18:49:00 +03:00 committed by Pavel Emelyanov
parent 66de7ceb14
commit ab04ddc567

View File

@ -2822,7 +2822,7 @@ rst_prep_creds_args(CredsEntry *ce, unsigned long *prev_pos)
memcpy(&args->creds, ce, sizeof(args->creds));
if (ce->lsm_profile || opts.lsm_supplied) {
char *rendered, *profile;
char *rendered = NULL, *profile;
profile = ce->lsm_profile;
if (opts.lsm_supplied)