r4537 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Feb 8 12:53:52 CET 2010
Author: phk
Date: 2010-02-08 12:53:51 +0100 (Mon, 08 Feb 2010)
New Revision: 4537
Modified:
trunk/varnish-cache/bin/varnishd/stevedore_utils.c
Log:
Remove an uninitialized variable and print the right one.
Modified: trunk/varnish-cache/bin/varnishd/stevedore_utils.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/stevedore_utils.c 2010-02-08 11:14:05 UTC (rev 4536)
+++ trunk/varnish-cache/bin/varnishd/stevedore_utils.c 2010-02-08 11:53:51 UTC (rev 4537)
@@ -83,7 +83,6 @@
{
int fd;
struct stat st;
- char *q;
int retval = 1;
char buf[FILENAME_MAX];
@@ -111,7 +110,7 @@
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;
More information about the varnish-commit
mailing list