diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.c')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.c b/src/transport/gnunet-service-transport_plugins.c index 4d162cf1f..979d80eb2 100644 --- a/src/transport/gnunet-service-transport_plugins.c +++ b/src/transport/gnunet-service-transport_plugins.c | |||
@@ -323,6 +323,7 @@ GST_plugins_a2s (const struct GNUNET_HELLO_Address *address) | |||
323 | { | 323 | { |
324 | struct GNUNET_TRANSPORT_PluginFunctions *api; | 324 | struct GNUNET_TRANSPORT_PluginFunctions *api; |
325 | static char unable_to_show[1024]; | 325 | static char unable_to_show[1024]; |
326 | static char *s; | ||
326 | 327 | ||
327 | if (address == NULL) | 328 | if (address == NULL) |
328 | { | 329 | { |
@@ -342,8 +343,8 @@ GST_plugins_a2s (const struct GNUNET_HELLO_Address *address) | |||
342 | address->transport_name); | 343 | address->transport_name); |
343 | return unable_to_show; | 344 | return unable_to_show; |
344 | } | 345 | } |
345 | return api->address_to_string (NULL, address->address, | 346 | return (NULL != (s = api->address_to_string (NULL, address->address, |
346 | address->address_length); | 347 | address->address_length)) ? s : "<invalid>"); |
347 | } | 348 | } |
348 | 349 | ||
349 | 350 | ||