Skip to content

Commit

Permalink
arvtest: fix maybe unitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelP committed Jul 30, 2021
1 parent afc0403 commit 479e4ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/arvtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ arv_test_device_properties (ArvTest *test, ArvTestCamera *test_camera)
{
g_autoptr (GError) error = NULL;
g_autofree gint *sensor_size = NULL;
g_autofree char *comment;
g_autofree char *comment = NULL;
ArvTestStatus status;
gint sensor_width, sensor_height;
gsize size = 0;
Expand All @@ -336,8 +336,6 @@ arv_test_device_properties (ArvTest *test, ArvTestCamera *test_camera)
error == NULL ? ARV_TEST_STATUS_SUCCESS : ARV_TEST_STATUS_FAILURE,
error != NULL ? error->message : NULL);

comment = NULL;

if (error == NULL && size == 2) {
if (sensor_size[0] != sensor_width ||
sensor_size[1] != sensor_height) {
Expand Down

0 comments on commit 479e4ae

Please sign in to comment.