]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
print "none" if not serving any segments
authorMartin Willi <martin@strongswan.org>
Thu, 25 Jun 2009 09:24:18 +0000 (11:24 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 7 Apr 2010 11:55:13 +0000 (13:55 +0200)
src/charon/plugins/ha_sync/ha_sync_segments.c

index aad6e68f6ddf02981c1e745f312f06872de2961d..f6f66bae9b18ac3676ee72e6563c1e276aec3ff6 100644 (file)
@@ -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;