diff options
author | axel <axel@liljencrantz.se> | 2006-06-21 19:54:30 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-06-21 19:54:30 +1000 |
commit | 3ddd5e59810d0d1642a061a6342811a8be7a5251 (patch) | |
tree | db8ed435f7a584c3c8643445c17c95b4f7c04734 /wutil.c | |
parent | b016438c08877cb3b24808d260397a8aa8fe49ce (diff) |
Check exit status of close and fclose in a few extra places
darcs-hash:20060621095430-ac50b-52afcee91b856f706d6df6bcf2e3a6bc7d746e40.gz
Diffstat (limited to 'wutil.c')
-rw-r--r-- | wutil.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -303,11 +303,12 @@ int waccess(const wchar_t *file_name, int mode) void wperror(const wchar_t *s) { + int e = errno; if( s != 0 ) { fwprintf( stderr, L"%ls: ", s ); } - fwprintf( stderr, L"%s\n", strerror( errno ) ); + fwprintf( stderr, L"%s\n", strerror( e ) ); } #ifdef HAVE_REALPATH_NULL |