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:
Jacek Jendrzej
2016-06-04 16:19:57 +02:00
parent 0f167c94c4
commit 3ea3a9b43b

View File

@@ -223,6 +223,7 @@ CLocaleManager::loadLocale_ret_t CLocaleManager::loadLocale(const char * const l
fclose(fd);
if(buf)
free(buf);
if(memp - *mem > 0){
char *_mem = (char *) realloc(*mem, memp - *mem);
if (_mem) {
if (_mem != *mem) {
@@ -233,7 +234,7 @@ CLocaleManager::loadLocale_ret_t CLocaleManager::loadLocale(const char * const l
*mem = _mem;
}
}
}
for (unsigned j = 1; j < (sizeof(locale_real_names)/sizeof(const char *)); j++)
if (loadData[j] == locale_real_names[j])
{