Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 libwacom/libwacom-database.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c
index 997b53f..884ae20 100644
--- a/libwacom/libwacom-database.c
+++ b/libwacom/libwacom-database.c
@@ -400,7 +400,10 @@ libwacom_parse_tablet_keyfile(const char *datadir, const 
char *filename)
        device = g_new0 (WacomDevice, 1);
 
        string_list = g_key_file_get_string_list(keyfile, DEVICE_GROUP, 
"DeviceMatch", NULL, NULL);
-       if (string_list) {
+       if (!string_list) {
+               DBG("Missing DeviceMatch= line in '%s'\n", path);
+               goto out;
+       } else {
                guint i;
                guint nmatches = 0;
                guint first_valid_match = 0;
-- 
2.7.4


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to