Do not die on empty changelog section
authorMichael Schroeder <mls@suse.de>
Tue, 24 May 2011 05:51:56 +0000 (08:51 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 24 May 2011 05:51:56 +0000 (08:51 +0300)
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
build/parseChangelog.c

index 36a19c3..d4681cb 100644 (file)
@@ -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;