MCPcopy Create free account
hub / github.com/git/git / null_streq

Function null_streq

reftable/record.c:961–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959}
960
961static int null_streq(const char *a, const char *b)
962{
963 const char *empty = "";
964 if (!a)
965 a = empty;
966
967 if (!b)
968 b = empty;
969
970 return 0 == strcmp(a, b);
971}
972
973static int reftable_log_record_equal_void(const void *a,
974 const void *b, uint32_t hash_size)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected