log-handler: Init log size properly

Log size is not initialized when the config string is not
present in the configuration file. Add a default value
in that case.

Resolves openbmc/obmc-console#14

Tested:
Made sure when configuration file contains no logsize
option, the size is configured to 16kB.

Change-Id: I20b109fc791f2d6ac54704c9aabb5cd129a8bf13
Signed-off-by: Kun Yi <kunyi731@gmail.com>
diff --git a/log-handler.c b/log-handler.c
index 88ea27b..275cc81 100644
--- a/log-handler.c
+++ b/log-handler.c
@@ -132,7 +132,7 @@
 {
 	struct log_handler *lh = to_log_handler(handler);
 	const char *filename, *logsize_str;
-	size_t logsize;
+	size_t logsize = default_logsize;
 	int rc;
 
 	lh->console = console;