]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove an assertion that doesn't test Emacs invariants
authorPhilipp Stephani <phst@google.com>
Mon, 12 Jun 2017 14:37:45 +0000 (16:37 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 12 Jun 2017 14:37:45 +0000 (16:37 +0200)
* src/emacs-module.c (module_copy_string_contents): Remove an
assertion that doesn't test Emacs invariants.

src/emacs-module.c

index 2602398d814749a5e25ea857668aff2296abaffb..650065d74b9c0ecc2a718f7927fc91ad52695250 100644 (file)
@@ -545,8 +545,6 @@ module_copy_string_contents (emacs_env *env, emacs_value value, char *buffer,
   ptrdiff_t raw_size = SBYTES (lisp_str_utf8);
   ptrdiff_t required_buf_size = raw_size + 1;
 
-  eassert (length != NULL);
-
   if (buffer == NULL)
     {
       *length = required_buf_size;