Avoid compiler warnings in null_write_handler()