Преглед изворни кода

input_common/input_engine: Ensure PadIdentifier UUIDs have a valid initial state

The default constructor of a UUID instance doesn't initialize the
underlying array.
Lioncash пре 4 година
родитељ
комит
651358d0b6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/input_common/input_engine.h

+ 1 - 1
src/input_common/input_engine.h

@@ -16,7 +16,7 @@
 
 
 // Pad Identifier of data source
 // Pad Identifier of data source
 struct PadIdentifier {
 struct PadIdentifier {
-    Common::UUID guid{};
+    Common::UUID guid{Common::INVALID_UUID};
     std::size_t port{};
     std::size_t port{};
     std::size_t pad{};
     std::size_t pad{};