diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-17 13:30:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-17 13:30:14 +0000 |
commit | 1e235920da4833235a83e8daa422f2420ab2368a (patch) | |
tree | 628eae31ca20fc13bdee5a964741a9da626cd00b /src/fs/gnunet-publish.c | |
parent | e90476f4bdf5ce125b49ee7e235f4aee6592941e (diff) | |
download | gnunet-1e235920da4833235a83e8daa422f2420ab2368a.tar.gz gnunet-1e235920da4833235a83e8daa422f2420ab2368a.zip |
-fix warning
Diffstat (limited to 'src/fs/gnunet-publish.c')
-rw-r--r-- | src/fs/gnunet-publish.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index 3fdc1a9fa..eb64cc4cc 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c | |||
@@ -135,6 +135,7 @@ static void * | |||
135 | progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | 135 | progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) |
136 | { | 136 | { |
137 | const char *s; | 137 | const char *s; |
138 | char *suri; | ||
138 | 139 | ||
139 | switch (info->status) | 140 | switch (info->status) |
140 | { | 141 | { |
@@ -164,10 +165,10 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
164 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 165 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
165 | FPRINTF (stdout, _("Publishing `%s' done.\n"), | 166 | FPRINTF (stdout, _("Publishing `%s' done.\n"), |
166 | info->value.publish.filename); | 167 | info->value.publish.filename); |
167 | s = GNUNET_FS_uri_to_string (info->value.publish.specifics. | 168 | suri = GNUNET_FS_uri_to_string (info->value.publish.specifics. |
168 | completed.chk_uri); | 169 | completed.chk_uri); |
169 | FPRINTF (stdout, _("URI is `%s'.\n"), s); | 170 | FPRINTF (stdout, _("URI is `%s'.\n"), suri); |
170 | GNUNET_free (s); | 171 | GNUNET_free (suri); |
171 | if (info->value.publish.pctx == NULL) | 172 | if (info->value.publish.pctx == NULL) |
172 | { | 173 | { |
173 | if (kill_task != GNUNET_SCHEDULER_NO_TASK) | 174 | if (kill_task != GNUNET_SCHEDULER_NO_TASK) |