(main): Initialize cwd_only in first two statements, rather than as part
authorJim Meyering <jim@meyering.net>
Sat, 2 Jul 1994 04:25:04 +0000 (04:25 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Jul 1994 04:25:04 +0000 (04:25 +0000)
of the declaration.  The latter evoked an error from /bin/cc of HPUX 9.01.

src/du.c

index 7809781..b3a9a83 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -232,7 +232,10 @@ main (argc, argv)
      char *argv[];
 {
   int c;
-  char *cwd_only[] = {".", NULL};
+  char *cwd_only[2];
+
+  cwd_only[0] = ".";
+  cwd_only[1] = "NULL";
 
   program_name = argv[0];
   xstat = lstat;