sql: Remove redundant enumerator allocation

Interestingly, this doesn't show up in the regression tests because the
compiler removes the first assignment (and thus the allocation) due to
-O2 that's included in our default CFLAGS.
This commit is contained in:
Tobias Brunner
2017-05-26 16:39:33 +02:00
parent 71d59af58a
commit bb494cde03
+1 -1
View File
@@ -598,7 +598,7 @@ METHOD(enumerator_t, peer_enumerator_destroy, void,
METHOD(backend_t, create_peer_cfg_enumerator, enumerator_t*,
private_sql_config_t *this, identification_t *me, identification_t *other)
{
peer_enumerator_t *e = malloc_thing(peer_enumerator_t);
peer_enumerator_t *e;
INIT(e,
.public = {