diff options
author | Daniel Jones <admin@danieljon.es> | 2020-01-12 02:28:42 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-01-12 02:28:42 +1030 |
commit | 62dfa938e3a5536671f3270bf12d658846fb5b07 (patch) | |
tree | e6869b5175075c145bac2fb89e194ffcf6444111 | |
parent | 154c94f59045d1f0af52ca4a058b42d7f8790220 (diff) | |
download | websitegenerator-62dfa938e3a5536671f3270bf12d658846fb5b07.tar.gz websitegenerator-62dfa938e3a5536671f3270bf12d658846fb5b07.zip |
make valgrind happy
-rw-r--r-- | pages.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |