We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d62e44c + 56c95cf commit b83bc6dCopy full SHA for b83bc6d
src/stash.c
@@ -173,7 +173,7 @@ static int stash_to_index(
173
git_index *index,
174
const char *path)
175
{
176
- git_index *repo_index;
+ git_index *repo_index = NULL;
177
git_index_entry entry = {{0}};
178
struct stat st;
179
int error;
@@ -187,7 +187,7 @@ static int stash_to_index(
187
return error;
188
189
git_index_entry__init_from_stat(&entry, &st,
190
- (repo_index != NULL || !repo_index->distrust_filemode));
+ (repo_index == NULL || !repo_index->distrust_filemode));
191
192
entry.path = path;
193
0 commit comments