fix getpwuid_r() and getpwnam_r()
Pierre A. Humblet
Mon Sep 8 21:59:00 GMT 2003
Radu Greab wrote:
> I have not rebuilt cygwin to test this patch, but I think that the
> problem and the fix are obvious: pw_comment is not returned or
> initialized by these reentrant functions. The problem was discovered
> when debugging a perl test failure on cygwin:
> Radu Greab
It's true that member "comment" should be initialized.
However it is always NULL in Cygwin, so your code is likely to crash.
Just set comment to NULL.
More information about the Cygwin-patches