Skip to content

Commit

Permalink
LibC: Don't clear static storage during endpwent
Browse files Browse the repository at this point in the history
  • Loading branch information
timschumi authored and linusg committed Jul 6, 2022
1 parent d903af3 commit ee5ee0e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Userland/Libraries/LibC/pwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee5ee0e

Please sign in to comment.