aboutsummaryrefslogtreecommitdiff
path: root/src/common/confline.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-06 08:50:22 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-06 11:48:41 -0400
commit89b673f24bf17bead40eb169cf0ef3d3969bb492 (patch)
treeffa8ca5254aa1863934d3cc8b83d19939da7fb62 /src/common/confline.c
parent95a4f2d5255185be88bb40670b63b450833990af (diff)
downloadtor-89b673f24bf17bead40eb169cf0ef3d3969bb492.tar.gz
tor-89b673f24bf17bead40eb169cf0ef3d3969bb492.zip
Add an assertion to config_line_append().
Diffstat (limited to 'src/common/confline.c')
-rw-r--r--src/common/confline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/confline.c b/src/common/confline.c
index c65560bbf3..6ec3b619dc 100644
--- a/src/common/confline.c
+++ b/src/common/confline.c
@@ -16,6 +16,8 @@ config_line_append(config_line_t **lst,
const char *key,
const char *val)
{
+ tor_assert(lst);
+
config_line_t *newline;
newline = tor_malloc_zero(sizeof(config_line_t));