From 7b8699759f3332e8b5cfe6eed5a80090d9ef8948 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 28 Aug 2017 21:47:16 -0700 Subject: [PATCH] Simplify remove_slash_colon * src/process.c (remove_slash_colon): Simplify and avoid a special case for "/:" by itself. --- src/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index 730caea677f..c45a3f63ce5 100644 --- a/src/process.c +++ b/src/process.c @@ -7692,7 +7692,7 @@ Lisp_Object remove_slash_colon (Lisp_Object name) { return - ((SBYTES (name) > 2 && SREF (name, 0) == '/' && SREF (name, 1) == ':') + (SREF (name, 0) == '/' && SREF (name, 1) == ':' ? make_specified_string (SSDATA (name) + 2, SCHARS (name) - 2, SBYTES (name) - 2, STRING_MULTIBYTE (name)) : name); -- 2.39.2