loadenv: detect truncated environment files
Properly detect when an environment file is truncated. This can happen
when a previous saveenv failed because the environment partition is too
small.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent aa49d86 commit 55fb660e0b772553e3303fb48469a32185dc9888
@Sascha Hauer Sascha Hauer authored on 8 Apr 2014
Showing 1 changed file
View
common/environment.c