summaryrefslogtreecommitdiff
path: root/common/name-value.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/name-value.c')
-rw-r--r--common/name-value.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/name-value.c b/common/name-value.c
index 0129f1b..f97396b 100644
--- a/common/name-value.c
+++ b/common/name-value.c
@@ -690,6 +690,7 @@ do_nvc_parse (nvc_t *result, int *errlinep, estream_t stream,
if (raw_value)
{
err = _nvc_add (*result, name, NULL, raw_value, 1);
+ name = NULL;
if (err)
goto leave;
}