* regex.c (bzero) [!_LIBC]: Define without coma expression. (regerror): Cast the...
[external/binutils.git] / libiberty / spaces.c
index 9592a03..69d7a2d 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 ; )