From 61b9c24763ec367ba788937fc309d710120db5fd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 31 Jul 2018 16:03:58 +0200 Subject: The proper term is apparently 'filename extension', not 'suffix'. --- platform/gl/gl-annotate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform') diff --git a/platform/gl/gl-annotate.c b/platform/gl/gl-annotate.c index 265ab673..1cfe4544 100644 --- a/platform/gl/gl-annotate.c +++ b/platform/gl/gl-annotate.c @@ -15,8 +15,8 @@ static pdf_write_options save_opts; static int pdf_filter(const char *fn) { - const char *suffix = strrchr(fn, '.'); - if (suffix && !fz_strcasecmp(suffix, ".pdf")) + const char *extension = strrchr(fn, '.'); + if (extension && !fz_strcasecmp(extension, ".pdf")) return 1; return 0; } -- cgit v1.2.3