Browse code

postprocess: Remove test for impossible condition (was: Re: postprocess.c: replace check for p==NULL with *p==0)

Piotr Kaczuba authored on 2011/06/02 01:47:37
Showing 1 changed files
... ...
@@ -819,8 +819,7 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
819 819
                 int plen;
820 820
                 int spaceLeft;
821 821
 
822
-                if(p==NULL) p= temp, *p=0;      //last filter
823
-                else p--, *p=',';               //not last filter
822
+                p--, *p=',';
824 823
 
825 824
                 plen= strlen(p);
826 825
                 spaceLeft= p - temp + plen;