summaryrefslogtreecommitdiff
path: root/lib/rpmrc.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-27 09:35:22 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-27 15:05:16 +0300
commite425e75311d0c6f6e12ea24d84d2f01759de46f9 (patch)
tree455e0efd28f6cc79cacd8df7225554362705ca86 /lib/rpmrc.c
parentc499a0b912629eeeabc3554d3e3a95c088e96422 (diff)
downloadlibrpm-tizen-e425e75311d0c6f6e12ea24d84d2f01759de46f9.tar.gz
librpm-tizen-e425e75311d0c6f6e12ea24d84d2f01759de46f9.tar.bz2
librpm-tizen-e425e75311d0c6f6e12ea24d84d2f01759de46f9.zip
Eliminate two dead increments in rpmrc platform processing
Diffstat (limited to 'lib/rpmrc.c')
-rw-r--r--lib/rpmrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index 7882af2a6..66d7b778b 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -670,7 +670,7 @@ static rpmRC rpmPlatform(const char * platform)
while (*p && !(*p == '-' || isspace(*p)))
p++;
if (*p != '-') {
- if (*p != '\0') *p++ = '\0';
+ if (*p != '\0') *p = '\0';
os = vendor;
vendor = "unknown";
} else {
@@ -686,7 +686,7 @@ static rpmRC rpmPlatform(const char * platform)
while (*p && !(*p == '-' || isspace(*p)))
p++;
}
- if (*p != '\0') *p++ = '\0';
+ if (*p != '\0') *p = '\0';
}
addMacro(NULL, "_host_cpu", NULL, cpu, -1);