From c96f3750c22ef1576a46140f3101e3585041f41f Mon Sep 17 00:00:00 2001 From: Piotr Kaczuba Date: Wed, 1 Jun 2011 18:47:37 +0200 Subject: [PATCH] postprocess: Remove test for impossible condition (was: Re: postprocess.c: replace check for p==NULL with *p==0) --- libpostproc/postprocess.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index bfb96e1a8f..589c2cead6 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -819,8 +819,7 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality) int plen; int spaceLeft; - if(p==NULL) p= temp, *p=0; //last filter - else p--, *p=','; //not last filter + p--, *p=','; plen= strlen(p); spaceLeft= p - temp + plen;