From: Christian Grothoff Date: Wed, 21 Aug 2019 08:58:57 +0000 (+0200) Subject: fix NPE when importing directory into gnunet-fs-gtk (cleaner fix) X-Git-Tag: v0.11.7~179 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21796ec12ca82821c545143eb4722a72942b6df1;p=oweals%2Fgnunet.git fix NPE when importing directory into gnunet-fs-gtk (cleaner fix) --- diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index e15462013..e808d3eaa 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c @@ -489,14 +489,14 @@ GNUNET_FS_probe (struct GNUNET_FS_Handle *h, struct GNUNET_FS_SearchResult *sr; GNUNET_assert (NULL != h); + GNUNET_assert (NULL != uri); sr = GNUNET_new (struct GNUNET_FS_SearchResult); sr->h = h; sr->uri = GNUNET_FS_uri_dup (uri); sr->meta = GNUNET_CONTAINER_meta_data_duplicate (meta); sr->client_info = client_info; sr->anonymity = anonymity; - if (NULL != uri) - GNUNET_FS_search_start_probe_ (sr); + GNUNET_FS_search_start_probe_ (sr); return sr; }