Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
b=13128
[fs/lustre-release.git]
/
lnet
/
utils
/
parser.c
diff --git
a/lnet/utils/parser.c
b/lnet/utils/parser.c
index
2f740c1
..
ee9604e
100644
(file)
--- a/
lnet/utils/parser.c
+++ b/
lnet/utils/parser.c
@@
-333,6
+333,10
@@
int Parser_commands(void)
if (*s) {
add_history(s);
rc = execute_line(s);
+
+ /* reset optind to 0 to tell getopt
+ * to reinitialize itself */
+ optind = 0;
}
free(line);