Marcus Rueckert
43997482be
-> OBS-URL: https://build.opensuse.org/request/show/70563 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=128
14 lines
465 B
Diff
14 lines
465 B
Diff
Do not segfault if the prep section is empty
|
|
|
|
--- build/parsePrep.c.orig 2011-05-13 16:22:59.000000000 +0000
|
|
+++ build/parsePrep.c 2011-05-13 16:23:41.000000000 +0000
|
|
@@ -518,7 +518,7 @@ int parsePrep(rpmSpec spec)
|
|
}
|
|
}
|
|
|
|
- for (ARGV_const_t lines = saveLines; *lines; lines++) {
|
|
+ for (ARGV_const_t lines = saveLines; lines && *lines; lines++) {
|
|
res = 0;
|
|
if (rstreqn(*lines, "%setup", sizeof("%setup")-1)) {
|
|
res = doSetupMacro(spec, *lines);
|