From ab04ddc567b3ddaae9dbe125c3baffc7cc9b8d0c Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Fri, 19 Feb 2016 18:49:00 +0300 Subject: [PATCH] restore: initialize uninitialized pointer Closes #115 Reported-by: Coverity Signed-off-by: Tycho Andersen Signed-off-by: Pavel Emelyanov --- criu/cr-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/cr-restore.c b/criu/cr-restore.c index 67032a347..8c752d129 100644 --- a/criu/cr-restore.c +++ b/criu/cr-restore.c @@ -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)