From: Martin Willi Date: Thu, 25 Jun 2009 09:24:18 +0000 (+0200) Subject: print "none" if not serving any segments X-Git-Tag: 4.4.0~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f82523859490907ee794218021831a7ed6220e3c;p=thirdparty%2Fstrongswan.git print "none" if not serving any segments --- diff --git a/src/charon/plugins/ha_sync/ha_sync_segments.c b/src/charon/plugins/ha_sync/ha_sync_segments.c index aad6e68f6d..f6f66bae9b 100644 --- a/src/charon/plugins/ha_sync/ha_sync_segments.c +++ b/src/charon/plugins/ha_sync/ha_sync_segments.c @@ -80,7 +80,7 @@ static bool in_segment(private_ha_sync_segments_t *this, static void log_segments(private_ha_sync_segments_t *this, bool activated, u_int segment) { - char buf[64], *pos = buf; + char buf[64] = "none", *pos = buf; int i; bool first = TRUE;