[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r7027: fix funny-looking assignment that crashes unit tests (tor/trunk/src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r7027: fix funny-looking assignment that crashes unit tests (tor/trunk/src/or)
- From: arma@xxxxxxxx
- Date: Fri, 11 Aug 2006 03:41:22 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 11 Aug 2006 03:41:36 -0400
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: arma
Date: 2006-08-11 03:41:21 -0400 (Fri, 11 Aug 2006)
New Revision: 7027
Modified:
tor/trunk/src/or/config.c
Log:
fix funny-looking assignment that crashes unit tests
Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c 2006-08-11 07:31:16 UTC (rev 7026)
+++ tor/trunk/src/or/config.c 2006-08-11 07:41:21 UTC (rev 7027)
@@ -449,7 +449,7 @@
static void *
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;
CHECK(fmt, opts);
return opts;