aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-05-26 15:10:04 +0200
committerTobias Brunner <tobias@strongswan.org>2017-05-26 16:39:33 +0200
commitbb494cde03ba7049e0f909ef109835109bf664c5 (patch)
tree3e978a4ebb3ee75f31098f712fdb3f0d162be283 /src/libcharon
parent71d59af58aea080c8fe93630612e3a73067b506e (diff)
downloadstrongswan-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.c2
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 = {