From e7b8fd79a40644bc0735a51faa8323c4bb20bc5c Mon Sep 17 00:00:00 2001 From: ewt Date: Fri, 23 Feb 1996 19:32:29 +0000 Subject: [PATCH] long_index needs to be set to 0 before calling getopt CVS patchset: 411 CVS date: 1996/02/23 19:32:29 --- rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpm.c b/rpm.c index b754e06..a814ffb 100755 --- a/rpm.c +++ b/rpm.c @@ -247,6 +247,8 @@ int main(int argc, char ** argv) { exit(-1); while (1) { + long_index = 0; + arg = getopt_long(argc, argv, "QqVyUYhpvKPfFilsagGducr:b:", options, &long_index); if (arg == -1) break; -- 2.7.4