From 0c826ef2516d6f80734a24d04d16f463718e9b10 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Tue, 9 Feb 2016 14:42:52 +0100 Subject: [PATCH] fix copy/paste error in ratbag_profile_set_default() It does not make sense to check for .set_active_profile() and then use .set_default_profile(). Signed-off-by: Benjamin Tissoires --- src/libratbag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libratbag.c b/src/libratbag.c index d6d5fe0e..9cb908ce 100644 --- a/src/libratbag.c +++ b/src/libratbag.c @@ -754,7 +754,7 @@ ratbag_profile_set_default(struct ratbag_profile *profile) return rc; if (ratbag_device_has_capability(device, RATBAG_DEVICE_CAP_SWITCHABLE_PROFILE)) { - assert(device->driver->set_active_profile); + assert(device->driver->set_default_profile); rc = device->driver->set_default_profile(device, profile->index); }