summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell.c b/shell.c
index a9659bb8..3b60ba7d 100644
--- a/shell.c
+++ b/shell.c
@@ -1989,7 +1989,11 @@ show_shell_usage (fp, extra)
for (i = 0, set_opts = 0; shell_builtins[i].name; i++)
if (STREQ (shell_builtins[i].name, "set"))
- set_opts = savestring (shell_builtins[i].short_doc);
+ {
+ set_opts = savestring (shell_builtins[i].short_doc);
+ break;
+ }
+
if (set_opts)
{
s = strchr (set_opts, '[');