projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf079ff
)
hush: if we did match "LINENO" or "OPTIND", stop further comparisons
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 6 Apr 2018 12:57:53 +0000
(14:57 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 6 Apr 2018 12:57:53 +0000
(14:57 +0200)
function old new delta
handle_changed_special_names 99 101 +2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index 7b59b0ff9d759623339490bc632b1072e8e45118..971a16affa1521c847efbe7be170f3a846156da3 100644
(file)
--- a/
shell/hush.c
+++ b/
shell/hush.c
@@
-2134,12
+2134,16
@@
static void handle_changed_special_names(const char *name, unsigned name_len)
&& name_len == 6
) {
#if ENABLE_HUSH_LINENO_VAR
- if (strncmp(name, "LINENO", 6) == 0)
+ if (strncmp(name, "LINENO", 6) == 0)
{
G.lineno_var = NULL;
+ return;
+ }
#endif
#if ENABLE_HUSH_GETOPTS
- if (strncmp(name, "OPTIND", 6) == 0)
+ if (strncmp(name, "OPTIND", 6) == 0)
{
G.getopt_count = 0;
+ return;
+ }
#endif
}
}