projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
926b828
)
(main): Initialize cwd_only in first two statements, rather than as part
author
Jim Meyering
<jim@meyering.net>
Sat, 2 Jul 1994 04:25:04 +0000
(
04:25
+0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/du.c
b/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;