summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-12 02:28:42 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-12 02:28:42 +1030
commit62dfa938e3a5536671f3270bf12d658846fb5b07 (patch)
treee6869b5175075c145bac2fb89e194ffcf6444111
parent154c94f59045d1f0af52ca4a058b42d7f8790220 (diff)
downloadwebsitegenerator-62dfa938e3a5536671f3270bf12d658846fb5b07.tar.gz
websitegenerator-62dfa938e3a5536671f3270bf12d658846fb5b07.zip
make valgrind happy
-rw-r--r--pages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages.c b/pages.c
index b905290..0f2e7f6 100644
--- a/pages.c
+++ b/pages.c
@@ -765,7 +765,7 @@ char
* convert a dumb d/m/y date string into something rfc822 compliant
* absolutely not portable
*/
- struct tm tm;
+ struct tm tm = {0};
char buff[size];
strptime(date, "%d/%m/%Y", &tm);
strftime(buff, size, "%d %b %Y", &tm);
@@ -808,7 +808,7 @@ writerss(FILE *out, int post)
}
if (pos == 1)
{
- /* should be the title */
+ /* should be the date */
strncpy(date, line, 512);
}