diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-09 20:57:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-09 20:57:28 +0000 |
commit | b0ee2cbddcdf5a2361ff168b8aeef5fb28d37014 (patch) | |
tree | 7f883e2a8b6f751d1827a6bd9f562c7639b6a926 /src/fs/fs_api.c | |
parent | 7fa5418e823a448a5a6ec4554e39bdc546b3e772 (diff) | |
download | gnunet-b0ee2cbddcdf5a2361ff168b8aeef5fb28d37014.tar.gz gnunet-b0ee2cbddcdf5a2361ff168b8aeef5fb28d37014.zip |
-do not call uri_to_string with NULL pointer
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r-- | src/fs/fs_api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 29539a498..9acec5be4 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -1539,7 +1539,10 @@ GNUNET_FS_unindex_sync_ (struct GNUNET_FS_UnindexContext *uc) | |||
1539 | GNUNET_break (0); | 1539 | GNUNET_break (0); |
1540 | goto cleanup; | 1540 | goto cleanup; |
1541 | } | 1541 | } |
1542 | uris = GNUNET_FS_uri_to_string (uc->ksk_uri); | 1542 | if (NULL != uc->ksk_uri) |
1543 | uris = GNUNET_FS_uri_to_string (uc->ksk_uri); | ||
1544 | else | ||
1545 | uris = NULL; | ||
1543 | if ((GNUNET_OK != GNUNET_BIO_write_string (wh, uc->filename)) || | 1546 | if ((GNUNET_OK != GNUNET_BIO_write_string (wh, uc->filename)) || |
1544 | (GNUNET_OK != GNUNET_BIO_write_int64 (wh, uc->file_size)) || | 1547 | (GNUNET_OK != GNUNET_BIO_write_int64 (wh, uc->file_size)) || |
1545 | (GNUNET_OK != write_start_time (wh, uc->start_time)) || | 1548 | (GNUNET_OK != write_start_time (wh, uc->start_time)) || |