summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-27 09:59:55 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-27 15:05:34 +0300
commit6123adcb45100cf6f4dbe88d8525c832747fda06 (patch)
tree2c427f0063739117d77a1fb6af6921d96f082b27 /build
parent692d7730d191c3c40d2dd98fb8a099bb674cced4 (diff)
downloadlibrpm-tizen-6123adcb45100cf6f4dbe88d8525c832747fda06.tar.gz
librpm-tizen-6123adcb45100cf6f4dbe88d8525c832747fda06.tar.bz2
librpm-tizen-6123adcb45100cf6f4dbe88d8525c832747fda06.zip
Eliminate a couple more dead increments in spec parsing code
Diffstat (limited to 'build')
-rw-r--r--build/parseChangelog.c2
-rw-r--r--build/parseSpec.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/build/parseChangelog.c b/build/parseChangelog.c
index d4681cbd5..eed9842a2 100644
--- a/build/parseChangelog.c
+++ b/build/parseChangelog.c
@@ -80,7 +80,7 @@ static int dateToTimet(const char * datestr, time_t * secs)
/* year */
p = pe; SKIPSPACE(p);
if (*p == '\0') goto exit;
- pe = p; SKIPNONSPACE(pe); if (*pe != '\0') *pe++ = '\0';
+ pe = p; SKIPNONSPACE(pe); if (*pe != '\0') *pe = '\0';
time.tm_year = strtol(p, &q, 10);
if (!(q && *q == '\0')) goto exit;
if (time.tm_year < 1990 || time.tm_year >= 3000) goto exit;
diff --git a/build/parseSpec.c b/build/parseSpec.c
index d0970a826..975867a77 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -162,7 +162,7 @@ static int copyNextLineFromOFI(rpmSpec spec, OFI_t *ofi)
while (from && *from && ch != '\n')
ch = *to++ = *from++;
spec->lbufPtr = to;
- *to++ = '\0';
+ *to = '\0';
ofi->readPtr = from;
/* Check if we need another line before expanding the buffer. */