]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(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 7809781339c61fccc876cc4381c1a41ec9b90980..b3a9a83ef7c80c8bb955199ca96ee4473fddd23a 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;