fix initialisation of zero_pid
authorJulius Bünger <buenger@mytum.de>
Sun, 19 Mar 2017 00:10:02 +0000 (01:10 +0100)
committerJulius Bünger <buenger@mytum.de>
Sun, 19 Mar 2017 00:10:02 +0000 (01:10 +0100)
src/rps/gnunet-rps.c

index f6bc94eca3381055f8dd1ae2d2068edb21fa87ec..e36e547fad5b03993c39ff75b5fa7e7eb737670d 100644 (file)
@@ -103,7 +103,7 @@ run (void *cls,
      const struct GNUNET_CONFIGURATION_Handle *cfg)
 {
   static uint64_t num_peers;
-  struct GNUNET_PeerIdentity zero_pid;
+  static struct GNUNET_PeerIdentity zero_pid;
 
   rps_handle = GNUNET_RPS_connect (cfg);