Skip to content

Commit ec33683

Browse files
committed
Fix case-sensitive comparison for devicestr
1 parent a5b77b3 commit ec33683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ int RedisAI_DagRunSyntaxParser(RedisModuleCtx *ctx, RedisModuleString **argv,
878878
const char* devicestr = rinfo->dagOps[i]->devicestr;
879879
bool found = false;
880880
for (long long j=0; j<array_len(devices); j++) {
881-
if (strcmp(devicestr, devices[j]) == 0) {
881+
if (strcasecmp(devicestr, devices[j]) == 0) {
882882
found = true;
883883
break;
884884
}

0 commit comments

Comments
 (0)