Eliminate bunch of dead increments in spec filelist parsing
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 27 May 2011 06:47:38 +0000 (09:47 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 27 May 2011 12:05:28 +0000 (15:05 +0300)
build/files.c

index 7d51a81..53dcdea 100644 (file)
@@ -403,7 +403,7 @@ static rpmRC parseForDev(char * buf, FileList fl)
     }
 
     p = pe; SKIPWHITE(p);
-    pe = p; SKIPNONWHITE(pe); if (*pe != '\0') *pe++ = '\0';
+    pe = p; SKIPNONWHITE(pe); if (*pe != '\0') *pe = '\0';
     for (pe = p; *pe && risdigit(*pe); pe++)
        {} ;
     if (*pe == '\0') {
@@ -419,7 +419,7 @@ static rpmRC parseForDev(char * buf, FileList fl)
     }
 
     p = pe; SKIPWHITE(p);
-    pe = p; SKIPNONWHITE(pe); if (*pe != '\0') *pe++ = '\0';
+    pe = p; SKIPNONWHITE(pe); if (*pe != '\0') *pe = '\0';
     for (pe = p; *pe && risdigit(*pe); pe++)
        {} ;
     if (*pe == '\0') {
@@ -428,7 +428,6 @@ static rpmRC parseForDev(char * buf, FileList fl)
            errstr = "devminor";
            goto exit;
        }
-       pe++;
     } else {
        errstr = "devminor";
        goto exit;
@@ -700,7 +699,7 @@ static rpmRC parseForLang(char * buf, FileList fl)
     }
 
     /* Bracket %lang args */
-    *pe++ = ' ';
+    *pe = ' ';
     for (pe = p; *pe && *pe != ')'; pe++)
        {};