From 842c009b38485cad9684ce5509966b301cf019c5 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 5 May 2011 18:10:08 -0700 Subject: [PATCH] fix -strong option was checking the presence of a useless second argument Change-Id: I2c524a79fc7317cb8b6146c10265ee9462cd1958 --- examples/cwebp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cwebp.c b/examples/cwebp.c index ea179abd..085ca808 100644 --- a/examples/cwebp.c +++ b/examples/cwebp.c @@ -698,7 +698,7 @@ int main(int argc, const char *argv[]) { config.filter_strength = strtol(argv[++c], NULL, 0); } else if (!strcmp(argv[c], "-af")) { config.autofilter = 1; - } else if (!strcmp(argv[c], "-strong") && c < argc - 1) { + } else if (!strcmp(argv[c], "-strong")) { config.filter_type = 1; } else if (!strcmp(argv[c], "-sharpness") && c < argc - 1) { config.filter_sharpness = strtol(argv[++c], NULL, 0);