Browse Source

Add an assertion to config_line_append().

Nick Mathewson 7 years ago
parent
commit
89b673f24b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/common/confline.c

+ 2 - 0
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));