diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-06 08:55:22 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-06 08:55:22 +0000 |
commit | 53a2b227423c1f40f246a3c226bfc2705d87ccc1 (patch) | |
tree | ce59a0e07e790e1680b66cc40f6f60920b3af20c /src/or | |
parent | e2e6d19e76977d2a1dadad98f8527da2057d612d (diff) | |
download | tor-53a2b227423c1f40f246a3c226bfc2705d87ccc1.tar.gz tor-53a2b227423c1f40f246a3c226bfc2705d87ccc1.zip |
fix the next subtle memory-crunching bug
now hup works
svn:r2696
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 5b903eba66..335936f8f6 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -617,7 +617,7 @@ option_reset(or_options_t *options, config_var_t *var) break; } if (var->initvalue) { - c = tor_malloc(sizeof(struct config_line_t)); + c = tor_malloc_zero(sizeof(struct config_line_t)); c->key = tor_strdup(var->name); c->value = tor_strdup(var->initvalue); config_assign_line(options,c,0); |