From: Jim Meyering Date: Sat, 2 Jul 1994 04:25:04 +0000 (+0000) Subject: (main): Initialize cwd_only in first two statements, rather than as part X-Git-Tag: textutils-1_12_1~665 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f980ff966ded93e2dc12f1fd2c0b0a44443ad60f;p=thirdparty%2Fcoreutils.git (main): Initialize cwd_only in first two statements, rather than as part of the declaration. The latter evoked an error from /bin/cc of HPUX 9.01. --- diff --git a/src/du.c b/src/du.c index 7809781339..b3a9a83ef7 100644 --- 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;