summaryrefslogtreecommitdiff
path: root/libpostproc
diff options
context:
space:
mode:
authorPiotr Kaczuba <p.kaczuba@attika.ath.cx>2011-06-01 18:47:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-02 14:43:14 +0200
commitc96f3750c22ef1576a46140f3101e3585041f41f (patch)
tree65d3f51f31131e2ef963efd0a1868111861b3cb4 /libpostproc
parentb443447536116f2843097f26a693478c66dcbe02 (diff)
postprocess: Remove test for impossible condition (was: Re: postprocess.c: replace check for p==NULL with *p==0)
Diffstat (limited to 'libpostproc')
-rw-r--r--libpostproc/postprocess.c3
1 files changed, 1 insertions, 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;