diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-22 11:25:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-22 11:25:49 +0000 |
commit | 6119925f2e9a14f795153c78dc88550ce24f4f90 (patch) | |
tree | dc4b9bbe1d4525d0df5c4c9bace0d615ec9435c7 /src/util/container_meta_data.c | |
parent | 5a85013ee94a838a2438a3bd1dedec1b78cc68a6 (diff) | |
download | gnunet-6119925f2e9a14f795153c78dc88550ce24f4f90.tar.gz gnunet-6119925f2e9a14f795153c78dc88550ce24f4f90.zip |
make clang static analysis happy
Diffstat (limited to 'src/util/container_meta_data.c')
-rw-r--r-- | src/util/container_meta_data.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/container_meta_data.c b/src/util/container_meta_data.c index fadb0dede..89a63d659 100644 --- a/src/util/container_meta_data.c +++ b/src/util/container_meta_data.c | |||
@@ -869,8 +869,9 @@ GNUNET_CONTAINER_meta_data_serialize (const struct GNUNET_CONTAINER_MetaData | |||
869 | clen = 0; | 869 | clen = 0; |
870 | cdata = NULL; | 870 | cdata = NULL; |
871 | left = size; | 871 | left = size; |
872 | i = 0; | ||
872 | pos = md->items; | 873 | pos = md->items; |
873 | for (i=0;i<md->item_count;i++) | 874 | while (pos != NULL) |
874 | { | 875 | { |
875 | comp = GNUNET_NO; | 876 | comp = GNUNET_NO; |
876 | if (0 == (opt & GNUNET_CONTAINER_META_DATA_SERIALIZE_NO_COMPRESS)) | 877 | if (0 == (opt & GNUNET_CONTAINER_META_DATA_SERIALIZE_NO_COMPRESS)) |
@@ -967,6 +968,7 @@ GNUNET_CONTAINER_meta_data_serialize (const struct GNUNET_CONTAINER_MetaData | |||
967 | if (pos->mime_type != NULL) | 968 | if (pos->mime_type != NULL) |
968 | left -= strlen (pos->mime_type) + 1; | 969 | left -= strlen (pos->mime_type) + 1; |
969 | pos = pos->next; | 970 | pos = pos->next; |
971 | i++; | ||
970 | } | 972 | } |
971 | GNUNET_free (ent); | 973 | GNUNET_free (ent); |
972 | 974 | ||