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.
1 parent e05fdfd commit 5db4c3dCopy full SHA for 5db4c3d
PC/getpathp.c
@@ -290,7 +290,6 @@ search_for_prefix(wchar_t *prefix, const wchar_t *argv0_path)
290
We guarantee 'prefix' is null terminated in bounds. */
291
wcscpy_s(prefix, MAXPATHLEN+1, argv0_path);
292
wchar_t stdlibdir[MAXPATHLEN+1];
293
- memset(stdlibdir, 0, sizeof(stdlibdir));
294
wcscpy_s(stdlibdir, Py_ARRAY_LENGTH(stdlibdir), prefix);
295
/* We initialize with the longest possible path, in case it doesn't fit.
296
This also gives us an initial SEP at stdlibdir[wcslen(prefix)]. */
0 commit comments