We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ada7c5f + 6347d64 commit 9889cffCopy full SHA for 9889cff
dir.c
@@ -2730,11 +2730,8 @@ static struct untracked_cache_dir *validate_untracked_cache(struct dir_struct *d
2730
return NULL;
2731
}
2732
2733
- if (!dir->untracked->root) {
2734
- const int len = sizeof(*dir->untracked->root);
2735
- dir->untracked->root = xmalloc(len);
2736
- memset(dir->untracked->root, 0, len);
2737
- }
+ if (!dir->untracked->root)
+ FLEX_ALLOC_STR(dir->untracked->root, name, "");
2738
2739
/* Validate $GIT_DIR/info/exclude and core.excludesfile */
2740
root = dir->untracked->root;
0 commit comments