summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/parseBuildInstallClean.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/parseBuildInstallClean.c b/build/parseBuildInstallClean.c
index 6f7421e69..d81bd0727 100644
--- a/build/parseBuildInstallClean.c
+++ b/build/parseBuildInstallClean.c
@@ -27,6 +27,8 @@ int parseBuildInstallClean(rpmSpec spec, rpmParseState parsePart)
} else if (parsePart == PART_CLEAN) {
sbp = &(spec->clean);
name = "%clean";
+ } else {
+ goto exit; /* programmer error */
}
if (*sbp != NULL) {