From d924f127fd9633ce3e484d54a7efdcdee590dc34 Mon Sep 17 00:00:00 2001 From: LRN Date: Tue, 19 Feb 2013 04:04:30 +0000 Subject: Don't generate namespace key files in the root dir... --- src/fs/fs_namespace.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fs/fs_namespace.c') diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index d84fdc5b1..f9cee5ff9 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c @@ -240,6 +240,12 @@ GNUNET_FS_namespace_create (struct GNUNET_FS_Handle *h, const char *name) struct GNUNET_FS_Namespace *ret; dn = get_namespace_directory (h); + if (NULL == dn) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + _("Can't determine where namespace directory is\n")); + return NULL; + } GNUNET_asprintf (&fn, "%s%s%s", dn, DIR_SEPARATOR_STR, name); GNUNET_free (dn); ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace)); -- cgit v1.2.3