Fix PR63758 by using the _NSGetEnviron() API on Darwin
[deliverable/binutils-gdb.git] / libiberty / spaces.c
index 9592a03a4cd56fd37d522bf8eea6bbc480caf829..69d7a2d3f834778242b24840f1c3c9fdbb351a26 100644 (file)
@@ -53,11 +53,8 @@ spaces (int count)
 
   if (count > maxsize)
     {
-      if (buf)
-       {
-         free (buf);
-       }
-      buf = malloc (count + 1);
+      free (buf);
+      buf = (char *) malloc (count + 1);
       if (buf == (char *) 0)
        return 0;
       for (t = buf + count ; t != buf ; )
This page took 0.026062 seconds and 4 git commands to generate.