Merge pull request #445 from ikerexxe/pwck_segfault

pwck: fix segfault when calling fprintf()
This commit is contained in:
Serge Hallyn 2021-11-17 08:14:22 -06:00 committed by GitHub
commit 6c4545544f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -857,6 +857,7 @@ int main (int argc, char **argv)
* Get my name so that I can use it to report errors.
*/
Prog = Basename (argv[0]);
shadow_logfd = stderr;
(void) setlocale (LC_ALL, "");
(void) bindtextdomain (PACKAGE, LOCALEDIR);