@ -314,14 +314,14 @@ int AP_Filesystem_FATFS::open(const char *pathname, int flags)
@@ -314,14 +314,14 @@ int AP_Filesystem_FATFS::open(const char *pathname, int flags)
// checks if fileno out of bounds
stream=fileno_to_stream(fileno);
if(stream==NULL){
if(stream==nullptr){
free_file_descriptor(fileno);
return-1;
}
// fileno_to_fatfs checks for fileno out of bounds
fh=fileno_to_fatfs(fileno);
if(fh==NULL){
if(fh==nullptr){
free_file_descriptor(fileno);
errno=EBADF;
return-1;
@ -368,13 +368,13 @@ int AP_Filesystem_FATFS::close(int fileno)
@@ -368,13 +368,13 @@ int AP_Filesystem_FATFS::close(int fileno)
// checks if fileno out of bounds
stream=fileno_to_stream(fileno);
if(stream==NULL){
if(stream==nullptr){
return-1;
}
// fileno_to_fatfs checks for fileno out of bounds