]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(rpl_putenv): Don't apply cast to argument of free.
authorJim Meyering <jim@meyering.net>
Tue, 13 May 2003 14:47:15 +0000 (14:47 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 13 May 2003 14:47:15 +0000 (14:47 +0000)
lib/putenv.c

index 25ff1c08ef42d16960f010953c6e553af366c79d..19c648699a5b5da1489dc73be019327930bba551 100644 (file)
@@ -146,7 +146,7 @@ rpl_putenv (const char *string)
       new_environ[size] = (char *) string;
       new_environ[size + 1] = NULL;
       if (last_environ != NULL)
-       free ((void *) last_environ);
+       free (last_environ);
       last_environ = new_environ;
       environ = new_environ;
     }