diff options
author | 2006-06-22 00:03:44 +1000 | |
---|---|---|
committer | 2006-06-22 00:03:44 +1000 | |
commit | 2076944268331c1938ffd0700155c8e7936c19ef (patch) | |
tree | 84dc496981e21e2102cfc647ae65bfab4e1863e3 /main.c | |
parent | 407c96e943d10c1595d0438ca81c098b78158905 (diff) |
Use the intern function to share the strings used to describe various key bindings. This saves both performance, code size and memory use, but there is a pathological case where the user continually changes key bindings, resulting in more allocated memory than needed.
darcs-hash:20060621140344-ac50b-c7eb89a94a96538215f9a6737f8e4bacd6a801fb.gz
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -117,6 +117,8 @@ int main( int argc, char **argv ) char *cmd=0; + halloc_util_init(); + wsetlocale( LC_ALL, L"" ); is_interactive_session=1; program_name=L"fish"; @@ -258,7 +260,6 @@ int main( int argc, char **argv ) no_exec = 0; } - halloc_util_init(); proc_init(); event_init(); |