diff options
author | 2012-02-09 02:01:49 -0800 | |
---|---|---|
committer | 2012-02-09 02:01:49 -0800 | |
commit | e5bba2294dfd0d56ee5b1c7ac4b9060873b8b03a (patch) | |
tree | cc43b1748386663ecd6f68bceb1ce328ce1321f9 /builtin.cpp | |
parent | 19cfd9b5d693b6e18d2c6e8f453158056d937bcc (diff) |
Removed some more halloc
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin.cpp b/builtin.cpp index 260a1722..4c55b095 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -1772,8 +1772,9 @@ static int builtin_function( parser_t &parser, wchar_t **argv ) { function_data_t *d = new function_data_t(); - d->name=halloc_wcsdup( parser.current_block, name); - d->description=desc?halloc_wcsdup( parser.current_block, desc):0; + d->name = name; + if (desc) + d->description = desc; d->events.swap(events); d->shadows = shadows; if (named_arguments.get()) |