• Sergei Golubchik's avatar
    cleanup: my_register_filename() · 24d8bc70
    Sergei Golubchik authored
    Don't let my_register_filename() fail because strdup() failed. Better to
    have NULL for a filename, then to fail the already successful open().
    
    Filenames are only used for error reporting and there was already code
    to ignore OOMs (my_fdopen()) and to cope with missing filenames
    (my_filename()).
    24d8bc70
my_open.c 4.29 KB