projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4357fa9
)
Fix segfault on build with empty %prep section
author
Michael Schroeder
<mls@suse.de>
Mon, 16 May 2011 08:57:44 +0000
(11:57 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 16 May 2011 08:57:44 +0000
(11:57 +0300)
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
build/parsePrep.c
patch
|
blob
|
history
diff --git
a/build/parsePrep.c
b/build/parsePrep.c
index
c0508ec
..
9e61dde
100644
(file)
--- a/
build/parsePrep.c
+++ b/
build/parsePrep.c
@@
-504,7
+504,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);