aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index b7add1fb1..637a6851b 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 }