Commit f2945754 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

fix funny-looking assignment that crashes unit tests


svn:r7027
parent 5647e5c7
...@@ -449,7 +449,7 @@ static or_state_t *global_state = NULL; ...@@ -449,7 +449,7 @@ static or_state_t *global_state = NULL;
static void * static void *
config_alloc(config_format_t *fmt) config_alloc(config_format_t *fmt)
{ {
void *opts = opts = tor_malloc_zero(fmt->size); void *opts = tor_malloc_zero(fmt->size);
*(uint32_t*)STRUCT_VAR_P(opts, fmt->magic_offset) = fmt->magic; *(uint32_t*)STRUCT_VAR_P(opts, fmt->magic_offset) = fmt->magic;
CHECK(fmt, opts); CHECK(fmt, opts);
return opts; return opts;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment