From 060376d428e8693e817ac0eae4710ce222d14e07 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 30 Aug 2010 03:50:06 +0200 Subject: [PATCH] Fixed htls bug. --- src/htls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/htls.c b/src/htls.c index 060d1bf..907187c 100644 --- a/src/htls.c +++ b/src/htls.c @@ -73,7 +73,7 @@ static int dcmp(const void *ap, const void *bp) static void head(char *name, struct charbuf *dst) { - char *title, *tmp; + char *title; title = sstrdup(htmlquote(name)); bprintf(dst, "\n"); @@ -82,7 +82,7 @@ static void head(char *name, struct charbuf *dst) bprintf(dst, "\n"); bprintf(dst, "Index of %s\n", title); if(stylesheet) { - bprintf(dst, "\n", htmlquote(tmp)); + bprintf(dst, "\n", htmlquote(stylesheet)); } else { bprintf(dst, "