struct mail_namespace *sync_ns = NULL;
enum dsync_brain_flags brain_flags;
bool remote_errors_logged = FALSE;
- int status, ret = 0;
+ int status = 0, ret = 0;
user->admin = TRUE;
user->dsyncing = TRUE;
static int
dsync_mailbox_export_iter_next_nonexistent_attr(struct dsync_mailbox_exporter *exporter)
{
- HASH_TABLE_TYPE(dsync_attr_change) attr_changes;
struct dsync_mailbox_attribute *attr;
struct mail_attribute_value value;
- attr_changes = dsync_transaction_log_scan_get_attr_hash(exporter->log_scan);
-
- while (hash_table_iterate(exporter->attr_change_iter, attr_changes,
+ while (hash_table_iterate(exporter->attr_change_iter,
+ dsync_transaction_log_scan_get_attr_hash(exporter->log_scan),
&attr, &attr)) {
if (attr->exported || !attr->deleted)
continue;
const char *request_guid = NULL;
uint32_t request_uid = 0;
+ i_assert(all_newmails != NULL);
+
/* get the list of the current local UIDs and the wanted UIDs.
find the first remote instance that we can request in case there are
no local instances */
static void
http_client_request_finish_payload_out(struct http_client_request *req)
{
+ i_assert(req->conn != NULL);
+
if (req->payload_output != NULL) {
o_stream_unref(&req->payload_output);
req->payload_output = NULL;
test_istream_set_size(input, i);
for (;;) {
+ value = NULL;
if (pos < N_ELEMENTS(json_output) &&
json_output[pos].type == (enum json_type)TYPE_SKIP) {
json_parse_skip_next(parser);