allow empty/NULL context message
[oweals/gnunet.git] / src / namestore / plugin_namestore_postgres.c
index 7bf7bef0284b7a906384aa574adc6dbbd0c37cbc..9118ca5cffddcd10b21d6f4b06ec22baa4d78e01 100644 (file)
@@ -1,6 +1,6 @@
  /*
   * This file is part of GNUnet
-  * (C) 2009-2013 Christian Grothoff (and other contributing authors)
+  * Copyright (C) 2009-2013, 2016 GNUnet e.V.
   *
   * GNUnet is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
   *
   * You should have received a copy of the GNU General Public License
   * along with GNUnet; see the file COPYING.  If not, write to the
-  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-  * Boston, MA 02111-1307, USA.
+  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+  * Boston, MA 02110-1301, USA.
   */
 
 /**
@@ -28,6 +28,7 @@
 #include "gnunet_namestore_service.h"
 #include "gnunet_gnsrecord_lib.h"
 #include "gnunet_postgres_lib.h"
+#include "gnunet_pq_lib.h"
 #include "namestore.h"
 
 
@@ -241,6 +242,7 @@ namestore_postgres_store_records (void *cls,
   }
   {
     char data[data_size];
+    // FIXME: use libgnunetpq!
     const char *paramValues[] = {
       (const char *) zone_key,
       (const char *) &pkey,