From 0a220468b034c22afa6d3d2e47544669c803f0a9 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Thu, 23 Jan 2020 12:51:00 +0100 Subject: [PATCH] main: clear old err messages upon restart --- kernel/sy_old/mars_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sy_old/mars_main.c b/kernel/sy_old/mars_main.c index ed349e9e..84b90a75 100644 --- a/kernel/sy_old/mars_main.c +++ b/kernel/sy_old/mars_main.c @@ -3349,6 +3349,8 @@ int make_log_init(void *buf, struct mars_dent *dent) my_id(), parent_path, my_id()); + if (!rot->trans_brick && trans_brick) + clear_vals(rot->msgs); rot->trans_brick = (void*)trans_brick; status = -ENOENT; if (!trans_brick) {