Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/citrus i guess the original intent was this...



details:   https://anonhg.NetBSD.org/src/rev/4bb228a8f6da
branches:  trunk
changeset: 548470:4bb228a8f6da
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jun 27 08:58:18 2003 +0000

description:
i guess the original intent was this...

diffstat:

 lib/libc/citrus/citrus_db_factory.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r bbdfbfa43c97 -r 4bb228a8f6da lib/libc/citrus/citrus_db_factory.c
--- a/lib/libc/citrus/citrus_db_factory.c       Fri Jun 27 08:56:07 2003 +0000
+++ b/lib/libc/citrus/citrus_db_factory.c       Fri Jun 27 08:58:18 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_db_factory.c,v 1.3 2003/06/27 08:56:07 itojun Exp $     */
+/*     $NetBSD: citrus_db_factory.c,v 1.4 2003/06/27 08:58:18 itojun Exp $     */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_db_factory.c,v 1.3 2003/06/27 08:56:07 itojun Exp $");
+__RCSID("$NetBSD: citrus_db_factory.c,v 1.4 2003/06/27 08:58:18 itojun Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -283,9 +283,8 @@
        depp = malloc(sizeof(*depp) * df->df_num_entries);
        if (depp == NULL)
                return -1;
-       memset(depp, 0, sizeof(*depp) * df->df_num_entries);
        for (i = 0; i < df->df_num_entries; i++)
-               *depp = NULL;
+               depp[i] = NULL;
 
        /* step1: store the entries which are not conflicting */
        SIMPLEQ_FOREACH(de, &df->df_entries, de_entry) {



Home | Main Index | Thread Index | Old Index