gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r8039 - in GNUnet: contrib src/applications/sqstore_mysql s


From: gnunet
Subject: [GNUnet-SVN] r8039 - in GNUnet: contrib src/applications/sqstore_mysql src/applications/sqstore_postgres
Date: Sat, 27 Dec 2008 02:49:33 -0700 (MST)

Author: grothoff
Date: 2008-12-27 02:49:33 -0700 (Sat, 27 Dec 2008)
New Revision: 8039

Modified:
   GNUnet/contrib/gnunet.supp
   GNUnet/src/applications/sqstore_mysql/mysqltest3.c
   GNUnet/src/applications/sqstore_postgres/postgres.c
Log:
fix

Modified: GNUnet/contrib/gnunet.supp
===================================================================
--- GNUnet/contrib/gnunet.supp  2008-12-27 09:40:51 UTC (rev 8038)
+++ GNUnet/contrib/gnunet.supp  2008-12-27 09:49:33 UTC (rev 8039)
@@ -66,7 +66,6 @@
    fun:_dl_start
    obj:/lib/ld-2.8.90.so
 }
-
 {
    badlibz
    Memcheck:Cond
@@ -74,7 +73,6 @@
    fun:deflate
    fun:compress2
 }
-
 {
    badgetaddrinfo
    Memcheck:Cond

Modified: GNUnet/src/applications/sqstore_mysql/mysqltest3.c
===================================================================
--- GNUnet/src/applications/sqstore_mysql/mysqltest3.c  2008-12-27 09:40:51 UTC 
(rev 8038)
+++ GNUnet/src/applications/sqstore_mysql/mysqltest3.c  2008-12-27 09:49:33 UTC 
(rev 8039)
@@ -68,11 +68,12 @@
       sizeof (GNUNET_DatastoreValue) +
       GNUNET_random_u32 (GNUNET_RANDOM_QUALITY_WEAK, 32 * 1024);
   size = size - (size & 7);     /* always multiple of 8 */
-
+  if (size == 0)
+    size = 8; /* never zero */
   /* generate random key */
   key.bits[0] = (unsigned int) GNUNET_get_time ();
   GNUNET_hash (&key, sizeof (GNUNET_HashCode), &key);
-  value = GNUNET_malloc (size);
+  value = GNUNET_malloc (size );
   value->size = htonl (size);
   value->type = htonl (i);
   value->priority =

Modified: GNUnet/src/applications/sqstore_postgres/postgres.c
===================================================================
--- GNUnet/src/applications/sqstore_postgres/postgres.c 2008-12-27 09:40:51 UTC 
(rev 8038)
+++ GNUnet/src/applications/sqstore_postgres/postgres.c 2008-12-27 09:49:33 UTC 
(rev 8039)
@@ -1255,8 +1255,6 @@
 static void
 postgres_shutdown ()
 {
-  unsigned int idx;
-
   if (dbh == NULL)
     return; /* already down */
 #if DEBUG_POSTGRES





reply via email to

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