Commit e7d58bdd authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

itss: Move buffer initialization a bit up (Coverity).

parent 9d47f87b
......@@ -759,6 +759,10 @@ struct chmFile *chm_openW(const WCHAR *filename)
if (newHandle->index_root == -1)
newHandle->index_root = newHandle->index_head;
/* initialize cache */
chm_set_param(newHandle, CHM_PARAM_MAX_BLOCKS_CACHED,
CHM_MAX_BLOCKS_CACHED);
/* By default, compression is enabled. */
newHandle->compression_enabled = 1;
......@@ -822,10 +826,6 @@ struct chmFile *chm_openW(const WCHAR *filename)
#endif
}
/* initialize cache */
chm_set_param(newHandle, CHM_PARAM_MAX_BLOCKS_CACHED,
CHM_MAX_BLOCKS_CACHED);
return newHandle;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment