Commit 3c4281b1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Flexelinting pointer constness

parent c65bf8e3
......@@ -460,7 +460,8 @@ exec_file(const char *fn, const char *script, const char *tmpdir,
{
FILE *f;
struct vsb *vsb;
char *p;
const char *p;
char *q;
(void)signal(SIGPIPE, SIG_IGN);
......@@ -475,10 +476,10 @@ exec_file(const char *fn, const char *script, const char *tmpdir,
vsb = VSB_new_auto();
AN(vsb);
if (*fn != '/') {
p = macro_get("pwd", NULL);
AN(p);
VSB_cat(vsb, p);
free(p);
q = macro_get("pwd", NULL);
AN(q);
VSB_cat(vsb, q);
free(q);
}
p = strrchr(fn, '/');
if (p != NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment