Opened 10 years ago
#299 new defect
freopen() returns NULL even if it is successful
Reported by: | KO Myung-Hun | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | libc-0.7 |
Component: | libc | Version: | 0.6.5 |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi/2.
Like the subject, freopen() returns NULL even if it is successful if filename is NULL.
For examples,
FILE *fp = freopen( NULL, "rb", stdin );
fp is set to NULL. However, stdin is changed to binary mode correctly.
Attachments (2)
Note:
See TracTickets
for help on using tickets.
Test case for freopen()