Browse Source

LibC: Don't clear static storage during `endpwent`

Tim Schumacher 3 years ago
parent
commit
ee5ee0ef86
1 changed files with 0 additions and 8 deletions
  1. 0 8
      Userland/Libraries/LibC/pwd.cpp

+ 0 - 8
Userland/Libraries/LibC/pwd.cpp

@@ -46,14 +46,6 @@ void endpwent()
         fclose(s_stream);
         s_stream = nullptr;
     }
-
-    memset(&s_passwd_entry, 0, sizeof(s_passwd_entry));
-
-    s_name = {};
-    s_passwd = {};
-    s_gecos = {};
-    s_dir = {};
-    s_shell = {};
 }
 
 struct passwd* getpwuid(uid_t uid)