mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
src/system/localize.cpp Undefined allocation of 0 bytes
Origin commit data
------------------
Branch: ni/coolstream
Commit: eb2c84434a
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-06-04 (Sat, 04 Jun 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -223,17 +223,18 @@ CLocaleManager::loadLocale_ret_t CLocaleManager::loadLocale(const char * const l
|
|||||||
fclose(fd);
|
fclose(fd);
|
||||||
if(buf)
|
if(buf)
|
||||||
free(buf);
|
free(buf);
|
||||||
char *_mem = (char *) realloc(*mem, memp - *mem);
|
if(memp - *mem > 0){
|
||||||
if (_mem) {
|
char *_mem = (char *) realloc(*mem, memp - *mem);
|
||||||
if (_mem != *mem) {
|
if (_mem) {
|
||||||
// most likely doesn't happen
|
if (_mem != *mem) {
|
||||||
for(unsigned int i = 1; i < sizeof(locale_real_names)/sizeof(const char *); i++)
|
// most likely doesn't happen
|
||||||
if (loadData[i] != locale_real_names[i])
|
for(unsigned int i = 1; i < sizeof(locale_real_names)/sizeof(const char *); i++)
|
||||||
loadData[i] -= *mem - _mem;
|
if (loadData[i] != locale_real_names[i])
|
||||||
*mem = _mem;
|
loadData[i] -= *mem - _mem;
|
||||||
|
*mem = _mem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unsigned j = 1; j < (sizeof(locale_real_names)/sizeof(const char *)); j++)
|
for (unsigned j = 1; j < (sizeof(locale_real_names)/sizeof(const char *)); j++)
|
||||||
if (loadData[j] == locale_real_names[j])
|
if (loadData[j] == locale_real_names[j])
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user