fix the next subtle memory-crunching bug

now hup works


svn:r2696
This commit is contained in:
Roger Dingledine 2004-11-06 08:55:22 +00:00
parent e2e6d19e76
commit 53a2b22742

View File

@ -617,7 +617,7 @@ option_reset(or_options_t *options, config_var_t *var)
break; break;
} }
if (var->initvalue) { 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->key = tor_strdup(var->name);
c->value = tor_strdup(var->initvalue); c->value = tor_strdup(var->initvalue);
config_assign_line(options,c,0); config_assign_line(options,c,0);