diff options
author | Ron Yorston <rmy@pobox.com> | 2016-11-29 11:26:45 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-11-29 11:26:45 +0000 |
commit | bb8d79eadbba1942dbdb9f9cee5c47833afe269f (patch) | |
tree | b8c517e9ca895d60d7227aef7177b6291df5e2cd /editors/sed.c | |
parent | 9fa1e4990e655a85025c9d270a1606983e375e47 (diff) | |
parent | 7d877fc9312a742b06125927bb1d34bd35398c6c (diff) | |
download | busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.gz busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.bz2 busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c index 63ca1dc99..86230ea42 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -892,7 +892,10 @@ static sed_cmd_t *branch_to(char *label) | |||
892 | sed_cmd_t *sed_cmd; | 892 | sed_cmd_t *sed_cmd; |
893 | 893 | ||
894 | for (sed_cmd = G.sed_cmd_head; sed_cmd; sed_cmd = sed_cmd->next) { | 894 | for (sed_cmd = G.sed_cmd_head; sed_cmd; sed_cmd = sed_cmd->next) { |
895 | if (sed_cmd->cmd == ':' && sed_cmd->string && !strcmp(sed_cmd->string, label)) { | 895 | if (sed_cmd->cmd == ':' |
896 | && sed_cmd->string | ||
897 | && strcmp(sed_cmd->string, label) == 0 | ||
898 | ) { | ||
896 | return sed_cmd; | 899 | return sed_cmd; |
897 | } | 900 | } |
898 | } | 901 | } |