diff --git a/roxie/udplib/udptrr.cpp b/roxie/udplib/udptrr.cpp index 759e32cd4c6..43c26d0c695 100644 --- a/roxie/udplib/udptrr.cpp +++ b/roxie/udplib/udptrr.cpp @@ -391,7 +391,7 @@ enum class ReceiveState { granted, // at least one permit granted and NO pending request, waiting for data to be sent max }; -constexpr const char * receiveStateNameText[(unsigned)ReceiveState::max] = { "idle", "requested", "granted" }; +constexpr const char * receiveStateNameText[(unsigned)ReceiveState::max+1] = { "idle", "requested", "granted", "unknown" }; const char * receiveStateName(ReceiveState idx) { return receiveStateNameText[(unsigned)idx]; }