summaryrefslogtreecommitdiff
path: root/build/build.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-16 16:25:09 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-16 16:25:09 +0200
commit14284725e6ddca4a8cd8ce5b0a4ba1e1ee7cef73 (patch)
treee70b2f0c26bd407051d2309eef3afe027c0244f0 /build/build.c
parent3ec48632b894c299c4c4455d4e12bbce0bd37f32 (diff)
downloadrpm-14284725e6ddca4a8cd8ce5b0a4ba1e1ee7cef73.tar.gz
rpm-14284725e6ddca4a8cd8ce5b0a4ba1e1ee7cef73.tar.bz2
rpm-14284725e6ddca4a8cd8ce5b0a4ba1e1ee7cef73.zip
Remove const from rpmMkTempFile file name parameter
- the temp name is malloced and needs to be freed by caller
Diffstat (limited to 'build/build.c')
-rw-r--r--build/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build.c b/build/build.c
index 120ef42d6..9399b2b02 100644
--- a/build/build.c
+++ b/build/build.c
@@ -51,7 +51,7 @@ rpmRC doScript(rpmSpec spec, rpmBuildFlags what, const char *name, StringBuf sb,
{
const char * rootURL = spec->rootURL;
const char * rootDir;
- const char *scriptName = NULL;
+ char *scriptName = NULL;
char * buildDirURL = rpmGenPath(rootURL, "%{_builddir}", "");
const char * buildScript;
char * buildCmd = NULL;