From 110182cee2c82d08b1f1676e06a1bb44d18ad4ad Mon Sep 17 00:00:00 2001 From: eitan Date: Thu, 20 Oct 2005 11:57:14 +0000 Subject: [PATCH] Fix problem in reading long options from the command line. git-svn-id: svn://openib.tc.cornell.edu/gen1@128 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/ulp/opensm/user/libvendor/winosm_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/ulp/opensm/user/libvendor/winosm_common.c b/trunk/ulp/opensm/user/libvendor/winosm_common.c index 9523beab..a12410ab 100644 --- a/trunk/ulp/opensm/user/libvendor/winosm_common.c +++ b/trunk/ulp/opensm/user/libvendor/winosm_common.c @@ -74,6 +74,7 @@ int getopt_long_only(int argc, char *const*argv, if (strcmp (tok, longopts[i].name) == 0) { /* We have a match */ + if (longindex != NULL ) *longindex = i; if (longopts[i].flag != NULL) { -- 2.41.0