summaryrefslogtreecommitdiffstats
path: root/common/main.c
diff options
context:
space:
mode:
authorstroese <stroese>2003-07-11 08:00:33 +0000
committerstroese <stroese>2003-07-11 08:00:33 +0000
commit155cb0104a9dc2924e209c8d0279f1da295b4d01 (patch)
tree45e77842c2120bfad3640eb380a88384caa9fb13 /common/main.c
parentf12e568ca45f6c56b5a6d52a43524987e141abe7 (diff)
downloadtalos-obmc-uboot-155cb0104a9dc2924e209c8d0279f1da295b4d01.tar.gz
talos-obmc-uboot-155cb0104a9dc2924e209c8d0279f1da295b4d01.zip
- Fix bug in CONFIG_VERSION_VARIABLE.
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/main.c b/common/main.c
index f7830a1f3d..5ddecca736 100644
--- a/common/main.c
+++ b/common/main.c
@@ -284,10 +284,8 @@ void main_loop (void)
#ifdef CONFIG_VERSION_VARIABLE
{
extern char version_string[];
- char *str = getenv("ver");
- if (!str)
- setenv ("ver", version_string); /* set version variable */
+ setenv ("ver", version_string); /* set version variable */
}
#endif /* CONFIG_VERSION_VARIABLE */
OpenPOWER on IntegriCloud