From: Fredrik Tolf Date: Mon, 30 Aug 2010 01:50:06 +0000 (+0200) Subject: Fixed htls bug. X-Git-Tag: 0.1~59 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=060376d428e8693e817ac0eae4710ce222d14e07 Fixed htls bug. --- 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, "