Commit 2039d8a5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Lasse Karstensen

Cave into to gcc49's paranoia...

parent 79b099d8
...@@ -534,7 +534,7 @@ vcc_file_source(const struct vcp * const vcp, struct vsb *sb, const char *fn) ...@@ -534,7 +534,7 @@ vcc_file_source(const struct vcp * const vcp, struct vsb *sb, const char *fn)
if (VFIL_searchpath(vcp->vcl_path, NULL, &f, fn, &fnp) || f == NULL) { if (VFIL_searchpath(vcp->vcl_path, NULL, &f, fn, &fnp) || f == NULL) {
VSB_printf(sb, "Cannot read file '%s' (%s)\n", VSB_printf(sb, "Cannot read file '%s' (%s)\n",
fnp != NULL ? fnp : fn, strerror(errno)); fnp != NULL ? fnp : fn, strerror(errno));
REPLACE(fnp, NULL); free(fnp);
return (NULL); return (NULL);
} }
sp = vcc_new_source(f, NULL, fnp); sp = vcc_new_source(f, NULL, fnp);
......
...@@ -136,12 +136,13 @@ vcc_ParseImport(struct vcc *tl) ...@@ -136,12 +136,13 @@ vcc_ParseImport(struct vcc *tl)
fnpx != NULL ? fnpx : fn); fnpx != NULL ? fnpx : fn);
VSB_printf(tl->sb, "\tdlerror: %s\n", dlerror()); VSB_printf(tl->sb, "\tdlerror: %s\n", dlerror());
vcc_ErrWhere(tl, mod); vcc_ErrWhere(tl, mod);
REPLACE(fnpx, NULL); free(fnpx);
return; return;
} }
AN(fnpx);
fnp = TlDup(tl, fnpx); fnp = TlDup(tl, fnpx);
REPLACE(fnpx, NULL); free(fnpx);
bprintf(buf, "Vmod_%.*s_Data", PF(mod)); bprintf(buf, "Vmod_%.*s_Data", PF(mod));
vmd = dlsym(hdl, buf); vmd = dlsym(hdl, buf);
......
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