From 35091141f51d1004969002dca767c92e2a70d869 Mon Sep 17 00:00:00 2001 From: avsdev-cw Date: Thu, 15 Oct 2020 12:07:16 +0100 Subject: [PATCH] Don't try to insert maps if there are none --- src/db_query.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/db_query.c b/src/db_query.c index e0473d9..30caab2 100644 --- a/src/db_query.c +++ b/src/db_query.c @@ -414,6 +414,10 @@ int64_t syncIdMap(struct stored_conn_t *sconn, const char *table, size_t table_l return qry_ret; } + if (n_maps == 0) { + return 1; + } + if ((sb = strbld_create()) == 0) { return -1; }