diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -825,7 +825,6 @@ main(int ac, char **av) | |||
825 | 825 | ||
826 | /* Save argv. Duplicate so setproctitle emulation doesn't clobber it */ | 826 | /* Save argv. Duplicate so setproctitle emulation doesn't clobber it */ |
827 | saved_argc = ac; | 827 | saved_argc = ac; |
828 | saved_argv = av; | ||
829 | saved_argv = xmalloc(sizeof(*saved_argv) * (ac + 1)); | 828 | saved_argv = xmalloc(sizeof(*saved_argv) * (ac + 1)); |
830 | for (i = 0; i < ac; i++) | 829 | for (i = 0; i < ac; i++) |
831 | saved_argv[i] = xstrdup(av[i]); | 830 | saved_argv[i] = xstrdup(av[i]); |
@@ -834,6 +833,7 @@ main(int ac, char **av) | |||
834 | #ifndef HAVE_SETPROCTITLE | 833 | #ifndef HAVE_SETPROCTITLE |
835 | /* Prepare for later setproctitle emulation */ | 834 | /* Prepare for later setproctitle emulation */ |
836 | compat_init_setproctitle(ac, av); | 835 | compat_init_setproctitle(ac, av); |
836 | av = saved_argv; | ||
837 | #endif | 837 | #endif |
838 | 838 | ||
839 | /* Initialize configuration options to their default values. */ | 839 | /* Initialize configuration options to their default values. */ |