[CRIU] [PATCH 4/5] mem: Fix typo in detect_pid_reuse

Cyrill Gorcunov gorcunov at gmail.com
Wed May 16 11:36:36 MSK 2018


*** CID 190172:  Uninitialized variables  (UNINIT)
/criu/mem.c: 325 in detect_pid_reuse()

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/mem.c b/criu/mem.c
index 289f36297c8f..138ba613a1da 100644
--- a/criu/mem.c
+++ b/criu/mem.c
@@ -323,7 +323,7 @@ static int detect_pid_reuse(struct pstree_item *item,
 	if (pps->start_time >= dump_ticks) {
 		/* Print "*" if unsure */
 		pr_warn("Pid reuse%s detected for pid %d\n",
-			pps_buf.start_time == dump_ticks ? "*" : "",
+			pps->start_time == dump_ticks ? "*" : "",
 			item->pid->real);
 		return 1;
 	}
-- 
2.14.3



More information about the CRIU mailing list