aboutsummaryrefslogtreecommitdiff
path: root/src/util/configuration.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-03 12:31:23 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-03 12:31:23 +0100
commitd1bdcb2618b13c3289492347550feb3fcf1f812d (patch)
tree131b879a93604417ae6abf590b784f1655570da8 /src/util/configuration.c
parent9a6588810236327f0a7155c29bd5d5a3f3822652 (diff)
downloadgnunet-d1bdcb2618b13c3289492347550feb3fcf1f812d.tar.gz
gnunet-d1bdcb2618b13c3289492347550feb3fcf1f812d.zip
make static analysis happier
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r--src/util/configuration.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index 0480ebd5d..7ed87cc1e 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -1241,7 +1241,7 @@ GNUNET_CONFIGURATION_have_value (const struct GNUNET_CONFIGURATION_Handle *cfg,
1241 * @param cfg configuration to use for path expansion 1241 * @param cfg configuration to use for path expansion
1242 * @param orig string to $-expand (will be freed!) 1242 * @param orig string to $-expand (will be freed!)
1243 * @param depth recursion depth, used to detect recursive expansions 1243 * @param depth recursion depth, used to detect recursive expansions
1244 * @return $-expanded string 1244 * @return $-expanded string, never NULL unless @a orig was NULL
1245 */ 1245 */
1246static char * 1246static char *
1247expand_dollar (const struct GNUNET_CONFIGURATION_Handle *cfg, 1247expand_dollar (const struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -1421,6 +1421,7 @@ GNUNET_CONFIGURATION_expand_dollar (
1421 continue; 1421 continue;
1422 dup = GNUNET_strdup (orig + i); 1422 dup = GNUNET_strdup (orig + i);
1423 dup = expand_dollar (cfg, dup, 0); 1423 dup = expand_dollar (cfg, dup, 0);
1424 GNUNET_assert (NULL != dup); /* make compiler happy */
1424 len = strlen (dup) + 1; 1425 len = strlen (dup) + 1;
1425 orig = GNUNET_realloc (orig, i + len); 1426 orig = GNUNET_realloc (orig, i + len);
1426 GNUNET_memcpy (orig + i, dup, len); 1427 GNUNET_memcpy (orig + i, dup, len);