summaryrefslogtreecommitdiffstats
path: root/common/env.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-10-15 09:29:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-21 22:21:24 +0200
commit6de93941c2464ee580e3cd6dea59d6f8f91e3d22 (patch)
treeba241bdc1b843f94053ce92636ce9f6a36b49c64 /common/env.c
parent47ca335debff43833b6806e251899c432e168b86 (diff)
downloadbarebox-6de93941c2464ee580e3cd6dea59d6f8f91e3d22.tar.gz
common/env.c: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/env.c')
-rw-r--r--common/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env.c b/common/env.c
index edaf388..f81bd46 100644
--- a/common/env.c
+++ b/common/env.c
@@ -137,7 +137,7 @@ const char *getenv (const char *name)
const char *val;
if (strchr(name, '.')) {
- const char *ret = 0;
+ const char *ret = NULL;
char *devstr = strdup(name);
char *par = strchr(devstr, '.');
struct device_d *dev;