X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fsuffix.c;h=ac34cba20e372ceaa0b137817cb159a3130dc895;hb=b0902369e789c9aadf584799889a34637688d601;hp=f6234516759d62951bf2e626c11cc60d495ded1f;hpb=1689ed43885c8418c29d1365ae3a06450a460830;p=chaz%2Ftar diff --git a/src/suffix.c b/src/suffix.c index f623451..ac34cba 100644 --- a/src/suffix.c +++ b/src/suffix.c @@ -1,5 +1,5 @@ /* This file is part of GNU tar. - Copyright 2007, 2009, 2013 Free Software Foundation, Inc. + Copyright 2007, 2009, 2013-2014 Free Software Foundation, Inc. Written by Sergey Poznyakoff. @@ -51,7 +51,7 @@ static struct compression_suffix compression_suffixes[] = { }; static struct compression_suffix const * -find_compression_suffix (const char *name, size_t *base_len) +find_compression_suffix (const char *name, size_t *ret_len) { char *suf = strrchr (name, '.'); @@ -67,8 +67,8 @@ find_compression_suffix (const char *name, size_t *base_len) { if (p->length == len && memcmp (p->suffix, suf, len) == 0) { - if (*base_len) - *base_len = strlen (name) - len - 1; + if (ret_len) + *ret_len = strlen (name) - len - 1; return p; } }