Skip to content

Commit 838ec0f

Browse files
UCP/CORE: Fix PR comments
1 parent e3be8e9 commit 838ec0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/gtest/ucp/test_ucp_context.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ class test_ucp_net_devices_config : public ucp_test {
146146
static std::set<std::string> get_mlx5_device_names(const entity &e) {
147147
std::set<std::string> device_names;
148148
for_each_net_device(e, [&](const uct_tl_resource_desc_t *rsc) {
149-
if (strncmp(rsc->dev_name, "mlx5_", 5) == 0) {
149+
std::string dev_name(rsc->dev_name);
150+
if (dev_name.compare(0, 5, "mlx5_") == 0) {
150151
device_names.insert(rsc->dev_name);
151152
}
152153
});

0 commit comments

Comments
 (0)