X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Finit.c;fp=src%2Finit.c;h=9ed72b2a7ca7539678d02e6488132c651b8aa113;hp=56fef508807b745007ece19eb2f00b27488ad4ad;hb=dfa1f4e0646f6fab5b768fd67477601126070dbc;hpb=43c89ab7a5b20a84c0f393cb5393b68d3ce382fe diff --git a/src/init.c b/src/init.c index 56fef508..9ed72b2a 100644 --- a/src/init.c +++ b/src/init.c @@ -270,6 +270,7 @@ static const struct { { "showalldnsentries", &opt.show_all_dns_entries, cmd_boolean }, { "spanhosts", &opt.spanhost, cmd_boolean }, { "spider", &opt.spider, cmd_boolean }, + { "startpos", &opt.start_pos, cmd_bytes }, { "strictcomments", &opt.strict_comments, cmd_boolean }, { "timeout", NULL, cmd_spec_timeout }, { "timestamping", &opt.timestamping, cmd_boolean }, @@ -406,6 +407,9 @@ defaults (void) opt.warc_cdx_dedup_filename = NULL; opt.warc_tempdir = NULL; opt.warc_keep_log = true; + + /* Use a negative value to mark the absence of --start-pos option */ + opt.start_pos = -1; } /* Return the user's home directory (strdup-ed), or NULL if none is