diff options
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c index 664a59e0721..a2d5673a257 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2042,7 +2042,6 @@ format_time_string (char const *format, ptrdiff_t formatlen, | |||
| 2042 | char *buf = buffer; | 2042 | char *buf = buffer; |
| 2043 | ptrdiff_t size = sizeof buffer; | 2043 | ptrdiff_t size = sizeof buffer; |
| 2044 | size_t len; | 2044 | size_t len; |
| 2045 | Lisp_Object bufstring; | ||
| 2046 | int ns = t.tv_nsec; | 2045 | int ns = t.tv_nsec; |
| 2047 | USE_SAFE_ALLOCA; | 2046 | USE_SAFE_ALLOCA; |
| 2048 | 2047 | ||
| @@ -2074,9 +2073,11 @@ format_time_string (char const *format, ptrdiff_t formatlen, | |||
| 2074 | } | 2073 | } |
| 2075 | 2074 | ||
| 2076 | xtzfree (tz); | 2075 | xtzfree (tz); |
| 2077 | bufstring = make_unibyte_string (buf, len); | 2076 | AUTO_STRING_WITH_LEN (bufstring, buf, len); |
| 2077 | Lisp_Object result = code_convert_string_norecord (bufstring, | ||
| 2078 | Vlocale_coding_system, 0); | ||
| 2078 | SAFE_FREE (); | 2079 | SAFE_FREE (); |
| 2079 | return code_convert_string_norecord (bufstring, Vlocale_coding_system, 0); | 2080 | return result; |
| 2080 | } | 2081 | } |
| 2081 | 2082 | ||
| 2082 | DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 2, 0, | 2083 | DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 2, 0, |