initialize all fields in find_file_open
This commit is contained in:
parent
b78ca68086
commit
bfc549ce42
1 changed files with 1 additions and 0 deletions
1
util.c
1
util.c
|
|
@ -53,6 +53,7 @@ FindFileState *find_file_open(const char *path, const char *pattern)
|
|||
pstrcpy(s->path, sizeof(s->path), path);
|
||||
pstrcpy(s->pattern, sizeof(s->pattern), pattern);
|
||||
s->bufptr = s->path;
|
||||
s->dirpath[0] = '\0';
|
||||
s->dir = NULL;
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue