emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 452d776: Fix small bug in copy_string_contents.


From: Philipp Stephani
Subject: emacs-27 452d776: Fix small bug in copy_string_contents.
Date: Fri, 3 Apr 2020 15:50:42 -0400 (EDT)

branch: emacs-27
commit 452d776a5da3f25ec1ce3a632c5df8db80b507ef
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>

    Fix small bug in copy_string_contents.
    
    * src/emacs-module.c (module_copy_string_contents): Fix incorrect
    variable use.  In this branch 'lisp_str_utf8' is always nil, so it
    makes little sense to add it as error data.
---
 src/emacs-module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/emacs-module.c b/src/emacs-module.c
index d56d032..911b82b 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -637,7 +637,7 @@ module_copy_string_contents (emacs_env *env, emacs_value 
value, char *buffer,
 
   /* Since we set HANDLE-8-BIT and HANDLE-OVER-UNI to nil, the return
      value can be nil, and we have to check for that. */
-  CHECK_TYPE (!NILP (lisp_str_utf8), Qunicode_string_p, lisp_str_utf8);
+  CHECK_TYPE (!NILP (lisp_str_utf8), Qunicode_string_p, lisp_str);
 
   ptrdiff_t raw_size = SBYTES (lisp_str_utf8);
   ptrdiff_t required_buf_size = raw_size + 1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]