mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Check if errno is set.
This commit is contained in:
@@ -51,7 +51,7 @@ void Filenames(const char* path)
|
||||
wRc = 0;
|
||||
cRc = 0;
|
||||
|
||||
if(!h) { rc = errno; }
|
||||
if(!h) rc = errno != 0 ? errno : -1;
|
||||
else
|
||||
{
|
||||
ret = fprintf(h, FILENAME_FORMAT, filenames[pos]);
|
||||
|
||||
Reference in New Issue
Block a user