summaryrefslogtreecommitdiff
path: root/build/parsePrep.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2020-09-09 11:59:52 +0300
committerPanu Matilainen <pmatilai@redhat.com>2020-09-09 12:46:26 +0300
commit73701e808ff71ae0a3097d8ae03e965bf2904cdc (patch)
treebe756c57d0e7570b6e2af5c5dbfbf669854fbdc7 /build/parsePrep.c
parent886c24cfc6c0fec90d8db1406a0e32c0e09e92c9 (diff)
downloadrpm-73701e808ff71ae0a3097d8ae03e965bf2904cdc.tar.gz
Couple of trivial and obvious const-correctness fixes to build code
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r--build/parsePrep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c
index d92e5cdf0..707d0a6ee 100644
--- a/build/parsePrep.c
+++ b/build/parsePrep.c
@@ -146,7 +146,8 @@ static char *doUntar(rpmSpec spec, uint32_t c, int quietly)
tar = rpmGetPath("%{__tar}", NULL);
if (compressed != COMPRESSED_NOT) {
- char *zipper, *t = NULL;
+ char *zipper = NULL;
+ const char *t = NULL;
int needtar = 1;
int needgemspec = 0;