fix: ensure log_config is always properly initialized 64/196464/3
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 28 Dec 2018 15:17:03 +0000 (16:17 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Sun, 30 Dec 2018 00:59:08 +0000 (00:59 +0000)
commit682e540702101156881a5c3219f1b27a8fcb4894
treef2b9a64d703bbb2e6880f5bbafd2a02fb1535ede
parent27cf38195f099fb15eb7cc05d2cdf251b692f1ca
fix: ensure log_config is always properly initialized

Proper initialization is required to be able to free the
structure after eg. failing log_config_read() which might
have either read some entries (and updated .begin/.end)
or have not read anything (keeping .begin/.end unchanged).

Change-Id: I3a2a2434488e13349746a85afcb4c81752609dd9
src/libdlog/log.c
src/logger/logger.c
src/tests/config.c