[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11974 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11974 - gnunet/src/util |
Date: |
Sun, 27 Jun 2010 14:46:48 +0200 |
Author: grothoff
Date: 2010-06-27 14:46:48 +0200 (Sun, 27 Jun 2010)
New Revision: 11974
Modified:
gnunet/src/util/container_meta_data.c
Log:
tolerate md==NULL
Modified: gnunet/src/util/container_meta_data.c
===================================================================
--- gnunet/src/util/container_meta_data.c 2010-06-27 12:43:24 UTC (rev
11973)
+++ gnunet/src/util/container_meta_data.c 2010-06-27 12:46:48 UTC (rev
11974)
@@ -474,6 +474,8 @@
{
struct MetaItem *pos;
+ if (md == NULL)
+ return 0;
if (iter == NULL)
return md->item_count;
pos = md->items;
@@ -509,6 +511,8 @@
{
struct MetaItem *pos;
+ if (md == NULL)
+ return NULL;
pos = md->items;
while (NULL != pos)
{
@@ -542,6 +546,8 @@
va_list args;
enum EXTRACTOR_MetaType type;
+ if (md == NULL)
+ return NULL;
ret = NULL;
va_start (args, md);
while (1)
@@ -574,6 +580,8 @@
struct MetaItem *pos;
struct MetaItem *match;
+ if (md == NULL)
+ return 0;
match = NULL;
pos = md->items;
while (NULL != pos)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11974 - gnunet/src/util,
gnunet <=