From 649a1d7be685ad66347b5006428cc30f54313bf3 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 23 Feb 2020 13:39:31 +0100 Subject: [PATCH] cpplint: Do not use variable-length arrays [runtime/arrays] --- src/algorithms/tracking/libs/fpga_multicorrelator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/tracking/libs/fpga_multicorrelator.cc b/src/algorithms/tracking/libs/fpga_multicorrelator.cc index 46c16db32..fb7fcc0eb 100644 --- a/src/algorithms/tracking/libs/fpga_multicorrelator.cc +++ b/src/algorithms/tracking/libs/fpga_multicorrelator.cc @@ -205,7 +205,7 @@ bool Fpga_Multicorrelator_8sc::free() void Fpga_Multicorrelator_8sc::set_channel(uint32_t channel) { - char device_io_name[max_length_deviceio_name]; // driver io name + char device_io_name[max_length_deviceio_name] = '\0'; // driver io name d_channel = channel; // open the device corresponding to the assigned channel