summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Munton <simon.j.munton@gmail.com>2020-07-16 23:00:37 +0100
committerRichard Hughes <richard@hughsie.com>2020-07-17 19:35:30 +0100
commitd4a3d4a702b144cf182ccfef894f0dfbf209e813 (patch)
treef33fb60ec04d8d5c30d2f4782315040597f6b1e7
parentb87cd436a5435b7f6ccaceba076b58e4481e8802 (diff)
downloadcolord-d4a3d4a702b144cf182ccfef894f0dfbf209e813.tar.gz
Fix segfault due to dereferencing NULL pointer
Signed-off-by: Simon Munton <simon.j.munton@gmail.com>
-rw-r--r--lib/compat/cd-compat-edid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/compat/cd-compat-edid.c b/lib/compat/cd-compat-edid.c
index d546aa3..1509456 100644
--- a/lib/compat/cd-compat-edid.c
+++ b/lib/compat/cd-compat-edid.c
@@ -331,9 +331,8 @@ cd_edid_get_profile (unsigned char *edid,
/* get the default profile for the device */
profile = cd_device_get_default_profile (device);
if (profile == NULL) {
- g_printerr ("No profile for %s: %s",
- cd_device_get_id (device),
- error->message);
+ g_printerr ("No profile for %s",
+ cd_device_get_id (device));
return CD_EDID_ERROR_NO_PROFILE;
}