about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/hashtable.c4
-rw-r--r--Src/signals.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/Src/hashtable.c b/Src/hashtable.c
index 19f23086b..917bbc9e6 100644
--- a/Src/hashtable.c
+++ b/Src/hashtable.c
@@ -789,8 +789,8 @@ removeshfuncnode(HashTable ht, char *nam)
     HashNode hn;
     int signum;
 
-    if (!strncmp(nam, "TRAP", 4) && (signum = getsignum(nam +4)) != -1)
-	hn = removetrap(getsignum(nam + 4));
+    if (!strncmp(nam, "TRAP", 4) && (signum = getsignum(nam + 4)) != -1)
+	hn = removetrap(signum);
     else
 	hn = removehashnode(shfunctab, nam);
 
diff --git a/Src/signals.c b/Src/signals.c
index e93030002..b8e06d444 100644
--- a/Src/signals.c
+++ b/Src/signals.c
@@ -674,7 +674,6 @@ dosavetrap(int sig, int level)
     } else {
 	st->list = sigfuncs[sig] ? dupeprog(sigfuncs[sig], 0) : NULL;
     }
-    noerrs = !!st->list;
     if (!savetraps)
 	savetraps = znewlinklist();
     /*
@@ -731,9 +730,7 @@ settrap(int sig, Eprog l)
 void
 unsettrap(int sig)
 {
-    int ne = noerrs;
     HashNode hn = removetrap(sig);
-    noerrs = ne;
     if (hn)
 	shfunctab->freenode(hn);
 }