rpm/rpm-4.9.0-empty-changelog-crash.patch
Panu Matilainen 23ac61a41f - fix crash if prep or changelog section in spec is empty (#706959)
- fix crash on macro which undefines itself
- fix script dependency generation with file 5.07 string changes (#712251)
2011-06-10 12:32:12 +03:00

22 lines
601 B
Diff

commit 78a6cf6fbf047c5bf0066df21792e4c9925d04a0
Author: Michael Schroeder <mls@suse.de>
Date: Tue May 24 08:51:56 2011 +0300
Do not die on empty changelog section
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
diff --git a/build/parseChangelog.c b/build/parseChangelog.c
index 36a19c3..d4681cb 100644
--- a/build/parseChangelog.c
+++ b/build/parseChangelog.c
@@ -233,7 +233,7 @@ int parseChangelog(rpmSpec spec)
}
}
- if (addChangelog(spec->packages->header, sb)) {
+ if (sb && addChangelog(spec->packages->header, sb)) {
goto exit;
}
res = nextPart;