Remove svace error 37/190337/1 accepted/tizen/unified/20181002.093426 submit/tizen/20181001.071210 submit/tizen/20181002.010047
authorpr.jung <pr.jung@samsung.com>
Mon, 1 Oct 2018 05:32:50 +0000 (14:32 +0900)
committerpr.jung <pr.jung@samsung.com>
Mon, 1 Oct 2018 05:32:50 +0000 (14:32 +0900)
Change-Id: I6b1b82251e219a980743e7c9cc5e780bb7902dfd
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/shared/logconfig.c

index 86d9e03..b415d91 100644 (file)
@@ -301,6 +301,8 @@ int log_config_read(struct log_config *config)
        config->begin = config->last = NULL;
 
        const char *main_path = getenv("DLOG_CONFIG_PATH") ?: DLOG_CONFIG_PATH;
+       if (!main_path)
+               return -ENOENT;
        int r = log_config_read_file(config, main_path);
        if (r < 0)
                return r;