(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-sync.c) |
| |
| 106 | | | dbox_sync_lock_expunge_file(struct dbox_sync_context *ctx, unsigned int file_id) |
| 107 | | | { |
| 108 | | | struct dbox_index_record *rec; |
| 109 | | | enum dbox_index_file_lock_status lock_status; |
| 110 | | | int ret; |
| 111 | | | |
| 112 | | | ret = dbox_index_try_lock_file(ctx->mbox->dbox_index, file_id, |
| 113 | [+] | | &lock_status); |
Event 1:
dbox_index_try_lock_file() does not initialize lock_status. - This may be because of a failure case or other special case for dbox_index_try_lock_file().
hide
|
|
 |
| 114 | | | if (ret < 0) |
Event 5:
Skipping " if". ret < 0 evaluates to false.
hide
|
|
| 115 | | | return -1; |
| 116 | | | |
| 117 | | | rec = dbox_index_record_lookup(ctx->mbox->dbox_index, file_id); |
| 118 | | | switch (lock_status) { |
Uninitialized Variable
lock_status was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |