[tor-commits] [tor/master] Add an assertion to config_line_append().
nickm at torproject.org
nickm at torproject.org
Thu Apr 6 15:51:27 UTC 2017
commit 89b673f24bf17bead40eb169cf0ef3d3969bb492
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Apr 6 08:50:22 2017 -0400
Add an assertion to config_line_append().
---
src/common/confline.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/common/confline.c b/src/common/confline.c
index c65560b..6ec3b61 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));
More information about the tor-commits
mailing list