Blame SOURCES/0001-tests-Add-missing-NULL-terminator-to-g_object_new.patch

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