aboutsummaryrefslogtreecommitdiff
path: root/lib/io/src/win32/istream.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/io/src/win32/istream.c')
-rw-r--r--lib/io/src/win32/istream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/io/src/win32/istream.c b/lib/io/src/win32/istream.c
index 46bed30..d140142 100644
--- a/lib/io/src/win32/istream.c
+++ b/lib/io/src/win32/istream.c
@@ -153,10 +153,11 @@ fail_free:
istream_t *istream_open_file(const char *path)
{
- WCHAR *wpath = path_to_windows(path);
+ WCHAR *wpath = NULL;
istream_t *out;
HANDLE hnd;
+ wpath = path_to_windows(path);
if (wpath == NULL)
return NULL;