[PATCH 30/42] common/environment.c: sparse fixes

Sascha Hauer s.hauer at pengutronix.de
Tue Oct 19 08:55:18 EDT 2010


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/environment.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/environment.c b/common/environment.c
index 0eb7e6b..e5f24ec 100644
--- a/common/environment.c
+++ b/common/environment.c
@@ -109,7 +109,7 @@ int envfs_save(char *filename, char *dirname)
 	struct action_data data;
 	void *buf = NULL;
 
-	data.writep = 0;
+	data.writep = NULL;
 	data.base = dirname;
 
 	/* first pass: calculate size */
-- 
1.7.2.3




More information about the barebox mailing list