summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
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 f7830a1..5ddecca 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 */