Skip to content

Commit 6bbe4d9

Browse files
committed
remove useless zero-initializations (immediately overridden afterwards)
1 parent 441f7b7 commit 6bbe4d9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

v8js_commonjs.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ static void v8js_commonjs_split_terms(const char *identifier, std::vector<char *
2626
{
2727
char *term = (char *) emalloc(PATH_MAX), *ptr = term;
2828

29-
// Initialise the term string
30-
*term = 0;
31-
3229
while (*identifier > 0) {
3330
if (*identifier == '/') {
3431
if (ptr > term) {
@@ -37,7 +34,6 @@ static void v8js_commonjs_split_terms(const char *identifier, std::vector<char *
3734
terms.push_back(estrdup(term));
3835

3936
// Reset term string
40-
memset(term, 0, strlen(term));
4137
ptr = term;
4238
}
4339
} else {

0 commit comments

Comments
 (0)