1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-04 15:49:42 +02:00

(_getopt_internal) [lint]: Initialize INDFOUND to

avoid warning from gcc.
This commit is contained in:
Jim Meyering
1995-08-04 14:30:19 +00:00
parent e799d19df8
commit f6b3413fcc
+9 -3
View File
@@ -476,7 +476,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
if (longopts != NULL
&& (argv[optind][1] == '-'
|| (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1])))))
|| (long_only && (argv[optind][2]
|| !my_index (optstring, argv[optind][1])))))
{
char *nameend;
const struct option *p;
@@ -509,8 +510,13 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
indfound = option_index;
}
else
/* Second or later nonexact match found. */
ambig = 1;
{
/* Second or later nonexact match found. */
ambig = 1;
#ifdef lint
indfound = 0;
#define
}
}
if (ambig && !exact)