From 5e13499c55639e93fbe46ce3dc053d74e5578cf9 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Sat, 3 Dec 2011 12:52:47 -0500 Subject: commit bash-20040107 snapshot --- copy_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'copy_cmd.c') diff --git a/copy_cmd.c b/copy_cmd.c index 37ceb2c8..d36436c9 100644 --- a/copy_cmd.c +++ b/copy_cmd.c @@ -308,7 +308,7 @@ copy_function_def_contents (old, new_def) FUNCTION_DEF *old, *new_def; { new_def->name = copy_word (old->name); - new_def->command = copy_command (old->command); + new_def->command = old->command ? copy_command (old->command) : old->command; new_def->flags = old->flags; new_def->line = old->line; new_def->source_file = old->source_file ? savestring (old->source_file) : old->source_file; -- cgit v1.2.1