[trunk] remove some warnings detected by cppcheck

This commit is contained in:
Mickael Savinaud
2011-12-07 09:53:46 +00:00
parent bfe8b81d18
commit 90eeb25770
3 changed files with 22 additions and 2 deletions

View File

@@ -2047,6 +2047,10 @@ opj_bool jp2_read_header_procedure(
if (l_current_handler != 00) {
if (l_current_data_size > l_last_data_size) {
l_current_data = (unsigned char*)opj_realloc(l_current_data,l_current_data_size);
if (!l_current_data){
opj_free(l_current_data);
return OPJ_FALSE;
}
l_last_data_size = l_current_data_size;
}