mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
Fix a bug where wfopen would always fail
Removed some buffer_t
This commit is contained in:
9
env.cpp
9
env.cpp
@@ -173,11 +173,6 @@ static bool is_electric(const wcstring &key)
|
||||
*/
|
||||
static null_terminated_array_t<char> export_array;
|
||||
|
||||
/**
|
||||
Buffer used for storing string contents for export_arr
|
||||
*/
|
||||
static buffer_t export_buffer;
|
||||
|
||||
|
||||
/**
|
||||
Flag for checking if we need to regenerate the exported variable
|
||||
@@ -507,8 +502,6 @@ void env_init()
|
||||
wchar_t *uname;
|
||||
wchar_t *version;
|
||||
|
||||
b_init( &export_buffer );
|
||||
|
||||
/*
|
||||
env_read_only variables can not be altered directly by the user
|
||||
*/
|
||||
@@ -671,8 +664,6 @@ void env_destroy()
|
||||
{
|
||||
env_universal_destroy();
|
||||
|
||||
b_destroy( &export_buffer );
|
||||
|
||||
while( &top->env != global )
|
||||
{
|
||||
env_pop();
|
||||
|
||||
Reference in New Issue
Block a user