aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-22 11:25:49 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-22 11:25:49 +0000
commit6119925f2e9a14f795153c78dc88550ce24f4f90 (patch)
treedc4b9bbe1d4525d0df5c4c9bace0d615ec9435c7 /src/peerinfo
parent5a85013ee94a838a2438a3bd1dedec1b78cc68a6 (diff)
downloadgnunet-6119925f2e9a14f795153c78dc88550ce24f4f90.tar.gz
gnunet-6119925f2e9a14f795153c78dc88550ce24f4f90.zip
make clang static analysis happy
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index e200eae2f..14c914beb 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -131,7 +131,8 @@ make_info_message (const struct HostEntry *he)
131 im->header.type = htons (GNUNET_MESSAGE_TYPE_PEERINFO_INFO); 131 im->header.type = htons (GNUNET_MESSAGE_TYPE_PEERINFO_INFO);
132 im->trust = htonl (he->trust); 132 im->trust = htonl (he->trust);
133 im->peer = he->identity; 133 im->peer = he->identity;
134 memcpy (&im[1], he->hello, hs); 134 if (he->hello != NULL)
135 memcpy (&im[1], he->hello, hs);
135 return im; 136 return im;
136} 137}
137 138