projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
055557c
)
fix NPE when importing directory into gnunet-fs-gtk (cleaner fix)
author
Christian Grothoff
<christian@grothoff.org>
Wed, 21 Aug 2019 08:58:57 +0000
(10:58 +0200)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 21 Aug 2019 08:58:57 +0000
(10:58 +0200)
src/fs/fs_search.c
patch
|
blob
|
history
diff --git
a/src/fs/fs_search.c
b/src/fs/fs_search.c
index e1546201335472157aec2940eeb7b1e1535d62e4..e808d3eaa2004f8f3ca783030075576137128e44 100644
(file)
--- 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;
}