diff options
-rw-r--r-- | editors/sed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c index ac765c83f..ddd4780d3 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -193,6 +193,7 @@ static int get_address(char *delimiter, char *my_str, int *linenum, regex_t **re | |||
193 | else if (my_str[idx] == '/' || my_str[idx] == '\\') { | 193 | else if (my_str[idx] == '/' || my_str[idx] == '\\') { |
194 | int idx_start = 1; | 194 | int idx_start = 1; |
195 | 195 | ||
196 | *delimiter = '/'; | ||
196 | if (my_str[idx] == '\\') { | 197 | if (my_str[idx] == '\\') { |
197 | idx_start++; | 198 | idx_start++; |
198 | *delimiter = my_str[++idx]; | 199 | *delimiter = my_str[++idx]; |