0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 14:01:53 +00:00

remove useless zero-initializations (immediately overridden afterwards)

This commit is contained in:
Stefan Siegl 2015-08-01 19:58:44 +02:00
parent 441f7b7fab
commit 6bbe4d932b

View File

@ -26,9 +26,6 @@ static void v8js_commonjs_split_terms(const char *identifier, std::vector<char *
{
char *term = (char *) emalloc(PATH_MAX), *ptr = term;
// Initialise the term string
*term = 0;
while (*identifier > 0) {
if (*identifier == '/') {
if (ptr > term) {
@ -37,7 +34,6 @@ static void v8js_commonjs_split_terms(const char *identifier, std::vector<char *
terms.push_back(estrdup(term));
// Reset term string
memset(term, 0, strlen(term));
ptr = term;
}
} else {