guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] GNU Guile branch, master, updated. release_1-9-4-47-gb1f


From: Ludovic Courtès
Subject: [Guile-commits] GNU Guile branch, master, updated. release_1-9-4-47-gb1f6293
Date: Mon, 26 Oct 2009 09:25:49 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=b1f6293e98768f1efedde848520812fc97dea294

The branch, master has been updated
       via  b1f6293e98768f1efedde848520812fc97dea294 (commit)
      from  9a9e0d6d5e70ecf959bcedf6e172e569c5339d17 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b1f6293e98768f1efedde848520812fc97dea294
Author: Ludovic Courtès <address@hidden>
Date:   Mon Oct 26 10:25:38 2009 +0100

    Don't use memset(3) after `GC_MALLOC ()' calls.
    
    * libguile/gc-malloc.c (scm_gc_calloc): Don't use memset(3) as it's not
      needed.  Reported by Andy Wingo.

-----------------------------------------------------------------------

Summary of changes:
 libguile/gc-malloc.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/libguile/gc-malloc.c b/libguile/gc-malloc.c
index 0e60eba..669f789 100644
--- a/libguile/gc-malloc.c
+++ b/libguile/gc-malloc.c
@@ -205,10 +205,8 @@ scm_gc_malloc (size_t size, const char *what)
 void *
 scm_gc_calloc (size_t size, const char *what)
 {
-  void *ptr = scm_gc_malloc (size, what);
-  if (size)
-    memset (ptr, 0x0, size);
-  return ptr;
+  /* `GC_MALLOC ()' always returns a zeroed buffer.  */
+  return scm_gc_malloc (size, what);
 }
 
 


hooks/post-receive
-- 
GNU Guile




reply via email to

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