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 c556b8338..16a14df51 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -257,8 +257,7 @@ process_config_line(Options *options, const char *host, | |||
257 | char *line, const char *filename, int linenum, | 257 | char *line, const char *filename, int linenum, |
258 | int *activep) | 258 | int *activep) |
259 | { | 259 | { |
260 | char buf[256], *s, *string = NULL, **charptr, *endofnumber, *keyword, | 260 | char buf[256], *s, *string, **charptr, *endofnumber, *keyword, *arg; |
261 | *arg; | ||
262 | int opcode, *intptr, value; | 261 | int opcode, *intptr, value; |
263 | u_short fwd_port, fwd_host_port; | 262 | u_short fwd_port, fwd_host_port; |
264 | 263 | ||
@@ -475,6 +474,7 @@ parse_string: | |||
475 | 474 | ||
476 | case oProxyCommand: | 475 | case oProxyCommand: |
477 | charptr = &options->proxy_command; | 476 | charptr = &options->proxy_command; |
477 | string = xstrdup(""); | ||
478 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { | 478 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { |
479 | string = xrealloc(string, strlen(string) + strlen(arg) + 2); | 479 | string = xrealloc(string, strlen(string) + strlen(arg) + 2); |
480 | strcat(string, " "); | 480 | strcat(string, " "); |