]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove an unneeded assertion
authorPhilipp Stephani <phst@google.com>
Sun, 4 Jun 2017 17:26:24 +0000 (19:26 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 4 Jun 2017 17:50:51 +0000 (19:50 +0200)
* src/emacs-module.c (module_copy_string_contents): Remove unneeded
assertion.  If this assertion triggers, we raise an error anyway.

src/emacs-module.c

index f7facb955bfb8617845d034aa723b6fce1fefef9..187a620cc0879c3544255c43d5a3a1f26f4526f6 100644 (file)
@@ -504,8 +504,6 @@ module_copy_string_contents (emacs_env *env, emacs_value value, char *buffer,
       return true;
     }
 
-  eassert (*length >= 0);
-
   if (*length < required_buf_size)
     {
       *length = required_buf_size;