state: storage: direct: do not close file that is not opened
When open failed to not try to close the invalid fd afterwards.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 95dfbdc commit 6f6604c918f95fccce2e94966f7c9512b80fb27c
@Sascha Hauer Sascha Hauer authored on 23 Mar 2017
Showing 1 changed file
View
common/state/backend_bucket_direct.c