diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-10 20:48:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-10 20:48:46 +0200 |
commit | ee35363d3dc4888592d29a205c7036451965250d (patch) | |
tree | b6e97d23fa1736794f52f74d6f68bbeda1ca49e9 /src/namestore/plugin_namestore_postgres.c | |
parent | bb7e8254409c774653216dd3d16a3416e2707017 (diff) | |
download | gnunet-ee35363d3dc4888592d29a205c7036451965250d.tar.gz gnunet-ee35363d3dc4888592d29a205c7036451965250d.zip |
minor bugfixes
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index de8d76853..9c6d05a21 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * This file is part of GNUnet | 2 | * This file is part of GNUnet |
3 | * Copyright (C) 2009-2013, 2016, 2017 GNUnet e.V. | 3 | * Copyright (C) 2009-2013, 2016-2018 GNUnet e.V. |
4 | * | 4 | * |
5 | * GNUnet is free software; you can redistribute it and/or modify | 5 | * GNUnet is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published | 6 | * it under the terms of the GNU General Public License as published |
@@ -319,7 +319,7 @@ parse_result_call_iterator (void *cls, | |||
319 | } | 319 | } |
320 | 320 | ||
321 | { | 321 | { |
322 | struct GNUNET_GNSRECORD_Data rd[record_count]; | 322 | struct GNUNET_GNSRECORD_Data rd[GNUNET_NZL(record_count)]; |
323 | 323 | ||
324 | if (GNUNET_OK != | 324 | if (GNUNET_OK != |
325 | GNUNET_GNSRECORD_records_deserialize (data_size, | 325 | GNUNET_GNSRECORD_records_deserialize (data_size, |