commit | 63b089e3aa9302206fbfa8260804e501e6483b83 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Nov 12 21:07:55 2015 -0800 |
committer | Elliott Hughes <enh@google.com> | Thu Nov 12 21:07:55 2015 -0800 |
tree | cd94fb1681bc08f6dac3f34e9a7f003742441e5c | |
parent | e4a3da9f51ca1e02179a1e0851f26015f4ec07fa [diff] |
We can use fclose directly in std::unique_ptr. It turns out the standard explicitly states that if the pointer is null, the deleter function won't be called. So it doesn't matter that fclose(3) doesn't accept null. Change-Id: I10e6e0d62209ec03ac60e673edd46f32ba279a04