diff options
| author | David Pinedo <david@lunarg.com> | 2016-02-13 18:19:50 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2016-02-14 09:25:48 -0700 |
| commit | 218d67ebe310bebbde7cf32832bc60416a09e36c (patch) | |
| tree | 80c584a30073878da7cf9d63ea6b96f78b036c8a | |
| parent | e36d1627547f2d7891b2d6ceb6a07db8cf0c07fe (diff) | |
| download | usermoji-218d67ebe310bebbde7cf32832bc60416a09e36c.tar.xz | |
loader: check for null pointers in loader_add_layer_property_meta
Fixes vulkaninfo when only RT is installed and there are no layers
installed.
| -rw-r--r-- | loader/loader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c index 108ce2c6..5de0ffba 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1783,7 +1783,10 @@ static void loader_add_layer_property_meta( bool found; struct loader_layer_list *layer_list; - if (!layer_count || (layer_count > layer_instance_list->count && + if (0 == layer_count || + NULL == layer_instance_list || + NULL == layer_device_list || + (layer_count > layer_instance_list->count && layer_count > layer_device_list->count)) return; |
