X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/83fff1aa6036f38a3d2daf6d809bd9c10d28fae6..6c65e14634d9d2a7b103fe53aa7585b196c38227:/token.c diff --git a/token.c b/token.c index e1039e2e..2967b44c 100644 --- a/token.c +++ b/token.c @@ -37,6 +37,12 @@ void set_compression(char *fname) if (!dont || !*dont) return; + if ((dont[0] == '*') && (!dont[1])) { + /* an optimization to skip the rest of this routine */ + compression_level = 0; + return; + } + dont = strdup(dont); fname = strdup(fname); if (!dont || !fname) return;