Fixed a bug in frequencies.q which would crash on alpha values
[pspp-builds.git] / src / filename.c
index 4aaf7d17f916d5c92aca4d4d2aad8f11d07376e9..4d90e6d5aae14000554babc1c20e4b68be1f6772 100644 (file)
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    02111-1307, USA. */
 
-/* AIX requires this to be the first thing in the file.  */
 #include <config.h>
-#if __GNUC__
-#define alloca __builtin_alloca
-#else
-#if HAVE_ALLOCA_H
-#include <alloca.h>
-#else
-#ifdef _AIX
-#pragma alloca
-#else
-#ifndef alloca                 /* predefined by HP cc +Olibcalls */
-char *alloca ();
-#endif
-#endif
-#endif
-#endif
-
 #include <assert.h>
+#include "filename.h"
 #include <stdlib.h>
 #include <ctype.h>
 #include <errno.h>
 #include "alloc.h"
 #include "error.h"
-#include "filename.h"
 #include "settings.h"
 #include "str.h"
 #include "version.h"
 
-#undef DEBUGGING
-/*#define DEBUGGING 1 */
 #include "debug-print.h"
 
 /* PORTME: Everything in this file is system dependent. */
@@ -373,16 +354,10 @@ fn_normalize (const char *filename)
   else
     {
       errno = 0;
-#if __CHECKER__
-      memset (dest, 0, maxlen);
-#endif
       while (getcwd (dest, maxlen - (dest - fn2)) == NULL && errno == ERANGE)
        {
          maxlen *= 2;
          dest = fn2 = xrealloc (fn2, maxlen + 1);
-#if __CHECKER__
-         memset (dest, 0, maxlen);
-#endif
          errno = 0;
        }
       if (errno)