diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-09-26 10:27:16 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-09-26 16:24:33 -0700 |
commit | 5f42930a418f9a83e8933344806b0c2dc6d5be6a (patch) | |
tree | bf4425123cbb1739a8b58b67bf63c9eb8c0624f1 /shared | |
parent | 7b8e970ad1f1ef96db23b379a41edeb40ef1e8b6 (diff) | |
download | weston-5f42930a418f9a83e8933344806b0c2dc6d5be6a.tar.gz |
config: Don't crash if we don't have a config file
Adding a check in weston_config_full_path so that
we don't crash if we started without a config file.
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'shared')
-rw-r--r-- | shared/config-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/config-parser.c b/shared/config-parser.c index e1bf212f..8defbbb4 100644 --- a/shared/config-parser.c +++ b/shared/config-parser.c @@ -385,7 +385,7 @@ weston_config_parse(const char *name) const char * weston_config_get_full_path(struct weston_config *config) { - return config->path; + return config == NULL ? NULL : config->path; } int |