aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_uri.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-10 16:45:11 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-10 16:45:11 +0000
commitcd3275dec48f35828837a84aae979c5e180f5184 (patch)
tree5e1b0ccec36c6520c8bb9031fbbb60d3b239680a /src/fs/fs_uri.c
parentf80a715b51f29c406885b63e92620deacf427c84 (diff)
downloadgnunet-cd3275dec48f35828837a84aae979c5e180f5184.tar.gz
gnunet-cd3275dec48f35828837a84aae979c5e180f5184.zip
fixing gnunet-publish for files
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r--src/fs/fs_uri.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c
index 665f04728..5c95f0e7a 100644
--- a/src/fs/fs_uri.c
+++ b/src/fs/fs_uri.c
@@ -1050,6 +1050,8 @@ GNUNET_FS_uri_dup (const struct GNUNET_FS_Uri *uri)
1050 struct GNUNET_FS_Uri *ret; 1050 struct GNUNET_FS_Uri *ret;
1051 unsigned int i; 1051 unsigned int i;
1052 1052
1053 if (uri == NULL)
1054 return NULL;
1053 ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri)); 1055 ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri));
1054 memcpy (ret, uri, sizeof (struct GNUNET_FS_Uri)); 1056 memcpy (ret, uri, sizeof (struct GNUNET_FS_Uri));
1055 switch (ret->type) 1057 switch (ret->type)