diff options
| author | Russell Belfer <rb@github.com> | 2013-08-13 09:53:56 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-08-13 09:53:56 -0700 |
| commit | ee0656012c213a9589c7a0892f3e4a11caebc664 (patch) | |
| tree | 1789c273dfb4a4cb06fd1a714b2a66c15b466f18 /src/win32/dir.h | |
| parent | 841034a35ee34190fa1cc136acccfa1a4abaed39 (diff) | |
| download | libgit2-ee0656012c213a9589c7a0892f3e4a11caebc664.tar.gz | |
Minor win32 fixes and improvements
This is just a bunch of small fixes that I noticed while looking
at the UTF8 and UTF16 path stuff. It fixes a slowdown in looking
for an empty directory (not exiting loop asap), makes the dir name
in the git__DIR structure be a GIT_FLEX_ARRAY to save an allocation,
and fixes some slightly odd assumptions in the cl_getenv helper.
Diffstat (limited to 'src/win32/dir.h')
| -rw-r--r-- | src/win32/dir.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/dir.h b/src/win32/dir.h index 60883ffa5..24d48f6ba 100644 --- a/src/win32/dir.h +++ b/src/win32/dir.h @@ -18,8 +18,8 @@ typedef struct { HANDLE h; WIN32_FIND_DATAW f; struct git__dirent entry; - char *dir; int first; + char dir[GIT_FLEX_ARRAY]; } git__DIR; extern git__DIR *git__opendir(const char *); |
