diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-07-05 23:48:00 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-06 10:34:20 +0200 |
commit | ee5ee0ef8626264d1ce95c4d8dac48acf10c55f6 (patch) | |
tree | 27abaec7c4d6df9a5b04b76401268c06dd9339ce /Userland/Libraries/LibC | |
parent | d903af3614212b9f93a449d189d0d14ff3cd2938 (diff) | |
download | serenity-ee5ee0ef8626264d1ce95c4d8dac48acf10c55f6.zip |
LibC: Don't clear static storage during `endpwent`
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r-- | Userland/Libraries/LibC/pwd.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Userland/Libraries/LibC/pwd.cpp b/Userland/Libraries/LibC/pwd.cpp index 6b47b3d6f9..b13e4b3db7 100644 --- a/Userland/Libraries/LibC/pwd.cpp +++ b/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) |