diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c index 4a1094685..19b571a71 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -256,7 +256,8 @@ process_config_line(Options *options, const char *host, | |||
256 | char *line, const char *filename, int linenum, | 256 | char *line, const char *filename, int linenum, |
257 | int *activep) | 257 | int *activep) |
258 | { | 258 | { |
259 | char buf[256], *s, *string, **charptr, *endofnumber, *keyword, *arg; | 259 | char buf[256], *s, *string = NULL, **charptr, *endofnumber, *keyword, |
260 | *arg; | ||
260 | int opcode, *intptr, value; | 261 | int opcode, *intptr, value; |
261 | u_short fwd_port, fwd_host_port; | 262 | u_short fwd_port, fwd_host_port; |
262 | 263 | ||
@@ -469,7 +470,6 @@ parse_string: | |||
469 | 470 | ||
470 | case oProxyCommand: | 471 | case oProxyCommand: |
471 | charptr = &options->proxy_command; | 472 | charptr = &options->proxy_command; |
472 | string = xstrdup(""); | ||
473 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { | 473 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { |
474 | string = xrealloc(string, strlen(string) + strlen(arg) + 2); | 474 | string = xrealloc(string, strlen(string) + strlen(arg) + 2); |
475 | strcat(string, " "); | 475 | strcat(string, " "); |