diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-05-26 15:10:04 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-05-26 16:39:33 +0200 |
commit | bb494cde03ba7049e0f909ef109835109bf664c5 (patch) | |
tree | 3e978a4ebb3ee75f31098f712fdb3f0d162be283 /src/libcharon | |
parent | 71d59af58aea080c8fe93630612e3a73067b506e (diff) | |
download | strongswan-bb494cde03ba7049e0f909ef109835109bf664c5.tar.bz2 strongswan-bb494cde03ba7049e0f909ef109835109bf664c5.tar.xz |
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.
Diffstat (limited to 'src/libcharon')
-rw-r--r-- | src/libcharon/plugins/sql/sql_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/sql/sql_config.c b/src/libcharon/plugins/sql/sql_config.c index 55e818122..00ed693eb 100644 --- a/src/libcharon/plugins/sql/sql_config.c +++ b/src/libcharon/plugins/sql/sql_config.c @@ -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 = { |