no need to assign buf = NULL - saait - the most boring static page generator
HTML git clone git://git.codemadness.org/saait
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 8d6a1aebbe14e7340d537d9b7db20a1d7c2872bf
DIR parent 68b7e11cb8d6eee9bfe01fa6fa8728d0d946c63d
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 4 Aug 2017 14:50:27 +0200
no need to assign buf = NULL
Diffstat:
M saait.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/saait.c b/saait.c
@@ -77,7 +77,7 @@ char *
readfile(const char *file)
{
FILE *fp;
- char *buf = NULL;
+ char *buf;
size_t n, len = 0, size = 0;
fp = efopen(file, "rb");