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:
1ae15ca
)
-LRN: fix crash if name is not available
author
Christian Grothoff
<christian@grothoff.org>
Sun, 25 Dec 2011 14:46:04 +0000
(14:46 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sun, 25 Dec 2011 14:46:04 +0000
(14:46 +0000)
src/fs/fs_uri.c
patch
|
blob
|
history
diff --git
a/src/fs/fs_uri.c
b/src/fs/fs_uri.c
index 9da78b6f4cca191108d83ebf596aa9727832cde1..55503b71bd889a227745b5f4beced86c98b85aa7 100644
(file)
--- a/
src/fs/fs_uri.c
+++ b/
src/fs/fs_uri.c
@@
-1784,7
+1784,7
@@
GNUNET_FS_uri_ksk_create_from_meta_data (const struct GNUNET_CONTAINER_MetaData
{
struct GNUNET_FS_Uri *ret;
char *filename;
- char *full_name;
+ char *full_name
= NULL
;
char *ss;
int ent;
int tok_keywords = 0;
@@
-1820,7
+1820,7
@@
GNUNET_FS_uri_ksk_create_from_meta_data (const struct GNUNET_CONTAINER_MetaData
ret->data.ksk.keywords,
ret->data.ksk.keywordCount);
if (ent > 0)
- GNUNET_free (full_name);
+ GNUNET_free
_non_null
(full_name);
return ret;
}