[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)



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;