diff options
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r-- | src/util/configuration.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c index 195c70aa9..80ad02e36 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c | |||
@@ -1163,11 +1163,13 @@ expand_dollar (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
1163 | } | 1163 | } |
1164 | if (NULL == env) | 1164 | if (NULL == env) |
1165 | { | 1165 | { |
1166 | start = GNUNET_strdup (start); | ||
1166 | if (erased_pos) | 1167 | if (erased_pos) |
1167 | *erased_pos = erased_char; | 1168 | *erased_pos = erased_char; |
1168 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1169 | LOG (GNUNET_ERROR_TYPE_WARNING, |
1169 | "Expanded to `%s' (returning orig)\n", | 1170 | _("Failed to expand `%s' in `%s' as it is neither found in [PATHS] nor defined as an environmental variable\n"), |
1170 | orig); | 1171 | start, orig); |
1172 | GNUNET_free (start); | ||
1171 | return orig; | 1173 | return orig; |
1172 | } | 1174 | } |
1173 | prefix = GNUNET_strdup (env); | 1175 | prefix = GNUNET_strdup (env); |