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>
This commit is contained in:
Alexandru DAMIAN
2013-09-26 10:27:16 +01:00
committed by Kristian Høgsberg
parent 7b8e970ad1
commit 5f42930a41
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -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