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:
4dac9be
)
(validate_path): Use IF_LINT macro instead of #ifdef lint.
author
Jim Meyering
<jim@meyering.net>
Sun, 22 Aug 1999 10:19:35 +0000
(10:19 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 22 Aug 1999 10:19:35 +0000
(10:19 +0000)
src/pathchk.c
patch
|
blob
|
history
diff --git
a/src/pathchk.c
b/src/pathchk.c
index
cb070a4
..
d13d558
100644
(file)
--- a/
src/pathchk.c
+++ b/
src/pathchk.c
@@
-263,7
+263,7
@@
validate_path (char *path, int portability)
{
int path_max;
int last_elem; /* Nonzero if checking last element of path. */
- int exists
;
/* 2 if the path element exists. */
+ int exists
IF_LINT (= 0);
/* 2 if the path element exists. */
char *slash;
char *parent; /* Last existing leading directory so far. */
@@
-273,11
+273,6
@@
validate_path (char *path, int portability)
if (*path == '\0')
return 0;
-#ifdef lint
- /* Suppress `used before initialized' warning. */
- exists = 0;
-#endif
-
/* Figure out the parent of the first element in PATH. */
parent = xstrdup (*path == '/' ? "/" : ".");