maya f959afb267 reorganize the code so we test if open fails at the open call.
this doesn't actually make a functional difference as ftruncate can
handle it, but it's a bit clearer and appeases static analyzers.

ok riastradh
2017-01-14 18:35:43 +00:00
..
2016-03-16 23:02:23 +00:00
2016-03-17 13:59:02 +00:00