31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From 1dbd421bd6cc3db07ed6a8482346755fcbeae9ef Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Berg <bberg@redhat.com>
|
|
Date: Mon, 20 Jan 2020 13:30:33 +0100
|
|
Subject: [PATCH] tests: Add missing NULL terminator to g_object_new
|
|
|
|
The g_object_new call had a NULL argument for a property. This meant
|
|
that the compiler could not warn about the lack of NULL termination for
|
|
the argument list.
|
|
|
|
Add the missing NULL termination.
|
|
---
|
|
tests/test-fpi-device.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/test-fpi-device.c b/tests/test-fpi-device.c
|
|
index 3d1e81c..7dcff20 100644
|
|
--- a/tests/test-fpi-device.c
|
|
+++ b/tests/test-fpi-device.c
|
|
@@ -240,7 +240,7 @@ test_driver_get_usb_device (void)
|
|
g_autoptr(FpDevice) device = NULL;
|
|
|
|
dev_class->type = FP_DEVICE_TYPE_USB;
|
|
- device = g_object_new (FPI_TYPE_DEVICE_FAKE, "fpi-usb-device", NULL);
|
|
+ device = g_object_new (FPI_TYPE_DEVICE_FAKE, "fpi-usb-device", NULL, NULL);
|
|
g_assert_null (fpi_device_get_usb_device (device));
|
|
|
|
g_clear_object (&device);
|
|
--
|
|
2.24.1
|
|
|