]> andersk Git - openssh.git/blobdiff - openbsd-compat/bsd-cygwin_util.c
ignore generated Makefile
[openssh.git] / openbsd-compat / bsd-cygwin_util.c
index 8f3acee2634b156973089248936aed4695e8e88d..b408dde2db6b9b8d38a2caceed61c45620dca9d2 100644 (file)
@@ -268,7 +268,7 @@ fetch_windows_environment(void)
        char **e, **p;
        unsigned int i, idx = 0;
 
-       p = xmalloc((WENV_SIZ + 1) * sizeof(char *));
+       p = xcalloc(WENV_SIZ + 1, sizeof(char *));
        for (e = environ; *e != NULL; ++e) {
                for (i = 0; i < WENV_SIZ; ++i) {
                        if (!strncmp(*e, wenv_arr[i].name, wenv_arr[i].namelen))
This page took 0.030733 seconds and 4 git commands to generate.