Commit 4f6cb172 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove an uninitialized variable and print the right one.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4537 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ee901d47
......@@ -83,7 +83,6 @@ STV_GetFile(const char *fn, int *fdp, const char **fnp, const char *ctx)
{
int fd;
struct stat st;
char *q;
int retval = 1;
char buf[FILENAME_MAX];
......@@ -111,7 +110,7 @@ STV_GetFile(const char *fn, int *fdp, const char **fnp, const char *ctx)
fd = mkstemp(buf);
if (fd < 0)
ARGV_ERR("(%s) \"%s\" mkstemp(%s) failed (%s)\n",
ctx, fn, q, strerror(errno));
ctx, fn, buf, strerror(errno));
*fnp = strdup(buf);
AN(*fnp);
retval = 2;
......
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