summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-08-19 07:47:56 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-08-19 07:47:56 +0000
commit1e977172cabfffd4fe774b2f13101247bb0e720c (patch)
tree31675ba3ba6c1f801882ed21c20340b508d2a064 /src/transport/plugin_transport_http_common.c
parentbf7f0f51764c29f82be5aeae84dd95de7a857cd3 (diff)
remove dead assignments
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r--src/transport/plugin_transport_http_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index 4c64d2bf7..7a7f9ad0c 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -320,7 +320,6 @@ http_common_plugin_string_to_address (void *cls,
address = NULL;
plugin = NULL;
optionstr = NULL;
- options = 0;
if ((NULL == addr) || (addrlen == 0))
{
GNUNET_break (0);
@@ -346,7 +345,7 @@ http_common_plugin_string_to_address (void *cls,
}
optionstr[0] = '\0';
optionstr ++;
- options = atol (optionstr);
+ options = atol (optionstr); /* 0 on conversion error, that's ok */
address = strchr (optionstr, '.');
if (NULL == address)
{