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