stat(2) into something

GNU complains if you pass `NULL` as the second argument to stat(2), so
instead pass a pointer to `NULL`.