Unused Value at dbox-sync.c:374 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
dbox_sync_finish (/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-sync.c)![]() | ||||||
![]() | ||||||
371 | int dbox_sync_finish(struct dbox_sync_context **_ctx, bool success) | |||||
372 | { | |||||
373 | struct dbox_sync_context *ctx = *_ctx; | |||||
374 | int ret = success ? 0 : -1;
| |||||
375 | ||||||
376 | *_ctx = NULL; | |||||
377 | ||||||
378 | if (success) { | |||||
379 | if (mail_index_sync_commit(&ctx->index_sync_ctx) < 0) { | |||||
380 | mail_storage_set_index_error(&ctx->mbox->ibox); | |||||
381 | ret = -1; | |||||
382 | } | |||||
383 | } else { | |||||
384 | mail_index_sync_rollback(&ctx->index_sync_ctx); | |||||
385 | } | |||||
386 | if (ctx->path != NULL) | |||||
387 | str_free(&ctx->path); | |||||
388 | i_free(ctx); | |||||
389 | return 0; | |||||
390 | } | |||||
![]() |