diff options
author | Nils Durner <durner@gnunet.org> | 2009-08-24 20:07:53 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2009-08-24 20:07:53 +0000 |
commit | 3d0444f9e6d64d6bc6b109cb743b9e08abcada0e (patch) | |
tree | 1e1bf16a08324156f8922a1bd27c505b53089957 /src/util/configuration.c | |
parent | da7cc55488f90b3294dbb7aa186184e6e8501d7e (diff) | |
download | gnunet-3d0444f9e6d64d6bc6b109cb743b9e08abcada0e.tar.gz gnunet-3d0444f9e6d64d6bc6b109cb743b9e08abcada0e.zip |
return error if filename could not be expanded
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r-- | src/util/configuration.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
602 | tmp = GNUNET_CONFIGURATION_expand_dollar (data, tmp); | 602 | tmp = GNUNET_CONFIGURATION_expand_dollar (data, tmp); |
603 | *value = GNUNET_STRINGS_filename_expand (tmp); | 603 | *value = GNUNET_STRINGS_filename_expand (tmp); |
604 | GNUNET_free (tmp); | 604 | GNUNET_free (tmp); |
605 | if (*value == NULL) | ||
606 | ret = GNUNET_SYSERR; | ||
605 | } | 607 | } |
606 | else | 608 | else |
607 | { | 609 | { |