瀏覽代碼

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

Tim Schumacher 3 年之前
父節點
當前提交
ee5ee0ef86
共有 1 個文件被更改,包括 0 次插入8 次删除
  1. 0 8
      Userland/Libraries/LibC/pwd.cpp

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

@@ -46,14 +46,6 @@ void endpwent()
         fclose(s_stream);
         fclose(s_stream);
         s_stream = nullptr;
         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)
 struct passwd* getpwuid(uid_t uid)