aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorPaul Eggert2021-10-13 11:19:12 -0700
committerPaul Eggert2021-10-13 11:19:12 -0700
commit8e072e6abef2bf1ec75b7c73883caeb7b7459eb1 (patch)
tree3d4b7f160e426a57f1bcf435034835e879c7c25d /test/src
parent396d2d88afe254715eb3b09226e0353e72c47936 (diff)
parentefb1cd7fa9f1a71ad3bf34627fe678acfcb48b38 (diff)
downloademacs-8e072e6abef2bf1ec75b7c73883caeb7b7459eb1.tar.gz
emacs-8e072e6abef2bf1ec75b7c73883caeb7b7459eb1.zip
Merge from origin/emacs-28
efb1cd7fa9 ; * etc/charsets/README: Update the format documentation. cc796b7409 Tramp doc cleanup a338d46060 Make emacs-lisp-byte-compile-and-load load the .elc file a... 3eac7dc780 Fix point movement in image-dired 4e9452a399 Improve shortdoc for vector f223ac6ef9 Fix test bug when calloc returns null ebeaa54f19 Pacify GCC 11 -fanalyzer on x86-64 56d1f42f30 Improve handling of non-character events in input methods 3fbe6fd367 ; Fix mistakes in last doc rewording about shorthands
Diffstat (limited to 'test/src')
-rw-r--r--test/src/emacs-module-resources/mod-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/src/emacs-module-resources/mod-test.c b/test/src/emacs-module-resources/mod-test.c
index 5720af8c605..4c0b168e34d 100644
--- a/test/src/emacs-module-resources/mod-test.c
+++ b/test/src/emacs-module-resources/mod-test.c
@@ -298,7 +298,10 @@ Fmod_test_userptr_make (emacs_env *env, ptrdiff_t nargs, emacs_value args[],
298{ 298{
299 struct super_struct *p = calloc (1, sizeof *p); 299 struct super_struct *p = calloc (1, sizeof *p);
300 if (!p) 300 if (!p)
301 signal_errno (env, "calloc"); 301 {
302 signal_errno (env, "calloc");
303 return NULL;
304 }
302 p->amazing_int = env->extract_integer (env, args[0]); 305 p->amazing_int = env->extract_integer (env, args[0]);
303 return env->make_user_ptr (env, free, p); 306 return env->make_user_ptr (env, free, p);
304} 307}