From: Joerg Sonnenberger Date: Sat, 20 Feb 2010 21:21:21 +0000 (-0500) Subject: Make sure that len is initialised even if no filters are present. X-Git-Tag: v3.0.0a~1238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e06d401cb8c84c9e9bb12f59c7e382dd2366bb96;p=thirdparty%2Flibarchive.git Make sure that len is initialised even if no filters are present. SVN-Revision: 1925 --- diff --git a/libarchive/archive_write.c b/libarchive/archive_write.c index 26df292c7..d4631a2e7 100644 --- a/libarchive/archive_write.c +++ b/libarchive/archive_write.c @@ -184,6 +184,7 @@ archive_write_set_compressor_options(struct archive *_a, const char *s) if (s == NULL || *s == '\0') return (ARCHIVE_OK); + len = 0; for (filter = a->filter_first; filter != NULL; filter = filter->next_filter) { if (filter->options == NULL) /* This filter does not have any options */