From bba3f434d519cd3b5469f2858b5cb430a7993836 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 27 Feb 2025 13:04:57 +0100 Subject: [PATCH] fix an error in change_sch_path() (level check) and go_back() (no set title) --- src/actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions.c b/src/actions.c index e6808c67..159ddcfe 100644 --- a/src/actions.c +++ b/src/actions.c @@ -2263,7 +2263,7 @@ int change_sch_path(int instnumber, int dr) char *ptr; size_t pathlen; int res = 0; - if(level <= 0 ) return 0; + if(level < 0 ) return 0; my_strdup2(_ALLOC_ID_, &instname, get_tok_value(xctx->hier_attr[level].prop_ptr, "name", 0)); my_strdup2(_ALLOC_ID_, &expanded_instname, expandlabel(instname, &inst_mult)); my_strdup2(_ALLOC_ID_, &path, xctx->sch_path[xctx->currsch]); @@ -2498,7 +2498,7 @@ void go_back(int what) char filename[PATH_MAX]; int prev_sch_type; int confirm = what & 1; - int set_title = !(confirm & 2); + int set_title = !(what & 2); save_ok=1; dbg(1,"go_back(): sch[xctx->currsch]=%s\n", xctx->sch[xctx->currsch]);