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:
parent
05df5e2822
commit
b9e546f05b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue