From 692d7730d191c3c40d2dd98fb8a099bb674cced4 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 27 May 2011 09:47:38 +0300 Subject: [PATCH] Eliminate bunch of dead increments in spec filelist parsing --- build/files.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build/files.c b/build/files.c index 7d51a81..53dcdea 100644 --- a/build/files.c +++ b/build/files.c @@ -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++) {}; -- 2.7.4