-- modifications to help cleanup libr/core/file.c
-- Added checks for NULL values
-- Removed compiling errors