diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-06 08:50:22 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-06 11:48:41 -0400 |
commit | 89b673f24bf17bead40eb169cf0ef3d3969bb492 (patch) | |
tree | ffa8ca5254aa1863934d3cc8b83d19939da7fb62 /src/common/confline.c | |
parent | 95a4f2d5255185be88bb40670b63b450833990af (diff) | |
download | tor-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.c | 2 |
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)); |