wr_cliprdr: fix uninitialized variable

Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
This commit is contained in:
Zhang Zhaolong 2015-03-13 10:32:21 +08:00
parent dfc1238523
commit 5b2a8ee873

View File

@ -909,6 +909,7 @@ static void map_ensure_capacity(wfClipboard* clipboard)
int new_size;
formatMapping *new_map;
new_size = clipboard->map_capacity * 2;
new_map = (formatMapping*) realloc(clipboard->format_mappings,
sizeof(formatMapping) * new_size);
if (!new_map)