aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index f4779ee2b..f6190c3e2 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -4751,7 +4751,7 @@ forkchild(struct job *jp, union node *n, int mode)
4751 * Our solution: ONLY bare $(trap) or `trap` is special. 4751 * Our solution: ONLY bare $(trap) or `trap` is special.
4752 */ 4752 */
4753 /* Save trap handler strings for trap builtin to print */ 4753 /* Save trap handler strings for trap builtin to print */
4754 trap_ptr = memcpy(xmalloc(sizeof(trap)), trap, sizeof(trap)); 4754 trap_ptr = xmemdup(trap, sizeof(trap));
4755 /* Fall through into clearing traps */ 4755 /* Fall through into clearing traps */
4756 } 4756 }
4757 clear_traps(); 4757 clear_traps();