mirror of
https://github.com/morgan9e/libfprint-fpc1020
synced 2026-04-15 00:44:25 +09:00
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.
This commit is contained in:
@@ -237,7 +237,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);
|
||||
|
||||
Reference in New Issue
Block a user