aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 3afa64e8f..66dfa1505 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -173,7 +173,7 @@ static int index_of_next_unescaped_regexp_delim(const struct sed_cmd * const sed
173 */ 173 */
174static int get_address(struct sed_cmd *sed_cmd, const char *str, int *linenum, regex_t **regex) 174static int get_address(struct sed_cmd *sed_cmd, const char *str, int *linenum, regex_t **regex)
175{ 175{
176 char *my_str = strdup(str); 176 char *my_str = xstrdup(str);
177 int idx = 0; 177 int idx = 0;
178 char olddelimiter; 178 char olddelimiter;
179 olddelimiter = sed_cmd->delimiter; 179 olddelimiter = sed_cmd->delimiter;