| 1257 | } |
| 1258 | |
| 1259 | int dictSdsKeyCompare(void *privdata, const void *key1, |
| 1260 | const void *key2) |
| 1261 | { |
| 1262 | int l1,l2; |
| 1263 | DICT_NOTUSED(privdata); |
| 1264 | |
| 1265 | l1 = sdslen((sds)key1); |
| 1266 | l2 = sdslen((sds)key2); |
| 1267 | if (l1 != l2) return 0; |
| 1268 | return memcmp(key1, key2, l1) == 0; |
| 1269 | } |
| 1270 | |
| 1271 | /* A case insensitive version used for the command lookup table and other |
| 1272 | * places where case insensitive non binary-safe comparison is needed. */ |
no test coverage detected