فهرست منبع

fix uninitialized variable warning

the returned UID is not used when trashing messages, but we still
shouldn't just return an undefined value.
Oswald Buddenhagen 10 سال پیش
والد
کامیت
83eaac8787
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/drv_maildir.c

+ 1 - 0
src/drv_maildir.c

@@ -1365,6 +1365,7 @@ maildir_store_msg( store_t *gctx, msg_data_t *data, int to_trash,
 		}
 		}
 		box = gctx->path;
 		box = gctx->path;
 	} else {
 	} else {
+		uid = 0;
 		box = ctx->trash;
 		box = ctx->trash;
 	}
 	}