summaryrefslogtreecommitdiffstats
path: root/kdm/backend/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'kdm/backend/util.c')
-rw-r--r--kdm/backend/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kdm/backend/util.c b/kdm/backend/util.c
index a5358cd65..c3e9a520c 100644
--- a/kdm/backend/util.c
+++ b/kdm/backend/util.c
@@ -409,9 +409,10 @@ setEnv( char **e, const char *name, const char *value )
char **
putEnv( const char *string, char **env )
{
- char *b, *n;
+ char *n;
+ char *b;
- if (!(b = strchr( string, '=' )))
+ if (!(b = (char*)strchr( string, '=' )))
return NULL;
if (!StrNDup( &n, string, b - string ))
return NULL;