aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.c
diff options
context:
space:
mode:
authorGravatar Christopher Nilsson <christopher@otherchirps.net>2010-09-12 13:16:11 +1000
committerGravatar Christopher Nilsson <christopher@otherchirps.net>2010-09-12 13:16:11 +1000
commit5c9b42e260fb8797cad138d3ead0810fc72f01b2 (patch)
treeae13c81e3daa87bd1f08f029392dfd82122f63f2 /function.c
parent7914c92824dfbb07466a37f12c7a06c7dd5f4de4 (diff)
'functions --copy': added sanity check on new function name.
Now matches function create behaviour, running the new function name through wcsfuncname() and parser_keywords_is_reserved(), before allowing the copy.
Diffstat (limited to 'function.c')
-rw-r--r--function.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/function.c b/function.c
index 5b2dcd5a..2ca736dc 100644
--- a/function.c
+++ b/function.c
@@ -226,8 +226,6 @@ int function_copy( const wchar_t *name, const wchar_t *new_name )
CHECK( name, 0 );
CHECK( new_name, 0 );
- fn_events = 0;
-
orig_d = (function_internal_data_t *)hash_get(&function, name);
if( !orig_d )
return 0;