aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/search.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/search.c b/src/search.c
index 1e57d2ecbe5..9d95dcbca58 100644
--- a/src/search.c
+++ b/src/search.c
@@ -3138,10 +3138,12 @@ DEFUN ("regexp-quote", Fregexp_quote, Sregexp_quote, 1, 1, 0,
3138 } 3138 }
3139 3139
3140 Lisp_Object result 3140 Lisp_Object result
3141 = make_specified_string (temp, 3141 = (backslashes_added > 0
3142 SCHARS (string) + backslashes_added, 3142 ? make_specified_string (temp,
3143 out - temp, 3143 SCHARS (string) + backslashes_added,
3144 STRING_MULTIBYTE (string)); 3144 out - temp,
3145 STRING_MULTIBYTE (string))
3146 : string);
3145 SAFE_FREE (); 3147 SAFE_FREE ();
3146 return result; 3148 return result;
3147} 3149}