Skip to content

Commit 5db4c3d

Browse files
Do not call memset().
1 parent e05fdfd commit 5db4c3d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

PC/getpathp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ search_for_prefix(wchar_t *prefix, const wchar_t *argv0_path)
290290
We guarantee 'prefix' is null terminated in bounds. */
291291
wcscpy_s(prefix, MAXPATHLEN+1, argv0_path);
292292
wchar_t stdlibdir[MAXPATHLEN+1];
293-
memset(stdlibdir, 0, sizeof(stdlibdir));
294293
wcscpy_s(stdlibdir, Py_ARRAY_LENGTH(stdlibdir), prefix);
295294
/* We initialize with the longest possible path, in case it doesn't fit.
296295
This also gives us an initial SEP at stdlibdir[wcslen(prefix)]. */

0 commit comments

Comments
 (0)