summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-07-05 23:48:00 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-06 10:34:20 +0200
commitee5ee0ef8626264d1ce95c4d8dac48acf10c55f6 (patch)
tree27abaec7c4d6df9a5b04b76401268c06dd9339ce /Userland/Libraries/LibC
parentd903af3614212b9f93a449d189d0d14ff3cd2938 (diff)
downloadserenity-ee5ee0ef8626264d1ce95c4d8dac48acf10c55f6.zip
LibC: Don't clear static storage during `endpwent`
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/pwd.cpp8
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)