Eliminate two dead increments in rpmrc platform processing
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 27 May 2011 06:35:22 +0000 (09:35 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 27 May 2011 12:05:16 +0000 (15:05 +0300)
lib/rpmrc.c

index 7882af2..66d7b77 100644 (file)
@@ -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);