src/pEpEngine.c
branchkeysync
changeset 1236 991afc1aa2a1
parent 1235 cfc9214a60a5
child 1237 18438a7595d7
     1.1 --- a/src/pEpEngine.c	Fri Sep 30 17:25:15 2016 +0200
     1.2 +++ b/src/pEpEngine.c	Mon Oct 03 19:08:15 2016 +0200
     1.3 @@ -6,7 +6,6 @@
     1.4  #include "sync_fsm.h"
     1.5  
     1.6  static int init_count = -1;
     1.7 -char sync_uuid[37];
     1.8  
     1.9  static int user_version(void *_version, int count, char **text, char **name)
    1.10  {
    1.11 @@ -135,7 +134,6 @@
    1.12  #define _DDL_USER_VERSION "3"
    1.13  
    1.14      if (in_first) {
    1.15 -        memset(sync_uuid, 0, 37);
    1.16  
    1.17          int_result = sqlite3_exec(
    1.18              _session->db,
    1.19 @@ -1897,7 +1895,7 @@
    1.20          own = 1;
    1.21      }
    1.22      else {
    1.23 -        if (name == sync_uuid || strcmp(name, sync_uuid) == 0)
    1.24 +        if (name == session->sync_uuid || strcmp(name, session->sync_uuid) == 0)
    1.25              own = 1;
    1.26      }
    1.27