aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/hostlist-client.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-08-15 13:51:40 +0000
committerChristian Grothoff <christian@grothoff.org>2010-08-15 13:51:40 +0000
commit52c219c6427a0c5a8dded76566a68cadaa9c48ea (patch)
tree54eac58628222c5b42082a4af1a37856fee12881 /src/hostlist/hostlist-client.c
parentee7d47da638c7bb1d90b933522f891a7439d7c87 (diff)
check for NULL
Diffstat (limited to 'src/hostlist/hostlist-client.c')
-rw-r--r--src/hostlist/hostlist-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index e080fdccdd..418eb5bdef 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -1372,6 +1372,7 @@ load_hostlist_file ()
counter = 0;
while ( (GNUNET_OK == GNUNET_BIO_read_string (rh, "url" , &uri, MAX_URL_LEN)) &&
+ (NULL != uri) &&
(GNUNET_OK == GNUNET_BIO_read_int32 (rh, &times_used)) &&
(GNUNET_OK == GNUNET_BIO_read_int64 (rh, &quality)) &&
(GNUNET_OK == GNUNET_BIO_read_int64 (rh, &last_used)) &&