From: Nils Durner Date: Mon, 24 Aug 2009 20:07:53 +0000 (+0000) Subject: return error if filename could not be expanded X-Git-Tag: initial-import-from-subversion-38251~23592 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3d0444f9e6d64d6bc6b109cb743b9e08abcada0e;p=oweals%2Fgnunet.git return error if filename could not be expanded --- diff --git a/src/util/configuration.c b/src/util/configuration.c index ff177d966..0ce672dd9 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c @@ -602,6 +602,8 @@ GNUNET_CONFIGURATION_get_value_filename (const struct GNUNET_CONFIGURATION_Handl tmp = GNUNET_CONFIGURATION_expand_dollar (data, tmp); *value = GNUNET_STRINGS_filename_expand (tmp); GNUNET_free (tmp); + if (*value == NULL) + ret = GNUNET_SYSERR; } else {